Skip to content

five-on-it / packages/ai/src/holdup / captiveStep

Function: captiveStep() ​

captiveStep(ai, npc): boolean

Defined in: packages/ai/src/holdup.ts:207

A captive's tick in place of its brain: standing still, facing the player who held it up (one restrained keeps the way it faces). Returns whether the NPC is a captive.

Parameters ​

ai ​

AiWorld

npc ​

NpcState

Returns ​

boolean