five-on-it / packages/ai/src/system / spawnRole
Function: spawnRole()
spawnRole(
ai,spec,schedule?):number
Defined in: packages/ai/src/system.ts:522
Spawns a role NPC (roles.ts): a driver at the wheel of its car, a target, a VIP; with a schedule (a target's), its hours are its routine. Returns its character's entity id.
Parameters
ai
spec
schedule?
readonly ScheduleEntry[]
Returns
number