five-on-it / packages/missions/src/runtime / SpawnNpcCommand
Interface: SpawnNpcCommand
Defined in: packages/missions/src/runtime.ts:829
Put an NPC actor in the level: a person of the contact role who stands at a place, or a guard or a civilian of stealth with its patrol (places after it) or post, its weapon by name and its pockets (the facts report it under the key); a driver at the wheel of a car of its class, on its route or after an actor; a target on its rounds, with its refuge; a VIP; any of them on a schedule.
Properties
at
at:
SpawnSpot
Defined in: packages/missions/src/runtime.ts:849
Where it stands and faces.
follow?
optionalfollow?:string
Defined in: packages/missions/src/runtime.ts:843
The key of the actor a driver follows.
key
key:
string
Defined in: packages/missions/src/runtime.ts:833
The actor's key: the facts report the NPC under it.
kind
kind:
"spawnNpc"
Defined in: packages/missions/src/runtime.ts:831
Discriminator.
loop?
optionalloop?:boolean
Defined in: packages/missions/src/runtime.ts:853
A patrol loops back to its home, or walks back and forth.
patrol?
optionalpatrol?:object[]
Defined in: packages/missions/src/runtime.ts:851
A guard's or a civilian's patrol points after its home; empty for a post.
x
x:
number
z
z:
number
player?
optionalplayer?:number
Defined in: packages/missions/src/runtime.ts:861
The player the mission belongs to (in a run, its holder 0: the host routes nothing by it).
pockets?
optionalpockets?: readonlyobject[]
Defined in: packages/missions/src/runtime.ts:859
What its pockets hold.
refuge?
optionalrefuge?:object
Defined in: packages/missions/src/runtime.ts:845
A target's refuge.
x
x:
number
z
z:
number
role
role:
"guard"|"civilian"|"driver"|"target"|"vip"|"contact"
Defined in: packages/missions/src/runtime.ts:835
A contact, a guard, a civilian, a driver, a target or a VIP.
route?
optionalroute?:object[]
Defined in: packages/missions/src/runtime.ts:841
A driver's (a target's) route: places in order.
x
x:
number
z
z:
number
schedule?
optionalschedule?:ScheduleHourSpot[]
Defined in: packages/missions/src/runtime.ts:847
Its schedule, when it has one.
speed?
optionalspeed?:number
Defined in: packages/missions/src/runtime.ts:839
A driver's share of its car's top speed.
turn?
optionalturn?:number
Defined in: packages/missions/src/runtime.ts:855
How far a post looks either way (rad).
vehicleClass?
optionalvehicleClass?:string
Defined in: packages/missions/src/runtime.ts:837
A driver's car class by name.
weapon?
optionalweapon?:string
Defined in: packages/missions/src/runtime.ts:857
A guard's or a civilian's weapon's name, or none.