Type / to search schemas

CAI_BaseNPC

base_npc4400 bytes (0x1130), align 16Source
Derived classes
CAI_CitadelNPC
Also in
clientHalf-Life: Alyxdiffers

Fields

NameTypeOffset

base_npcnot spawnable

Keyvalues

Inputs

NamePulseDescription
—
GetNPCMovementVelocity() → (retval: vec3)
Returns movement velocity of the given NPC
GetNPCState() → (retval: enum<NPC_STATE>)
Returns the NPC_STATE of the given NPC
OverrideHealth(param: int)
—
SetAILOD(nLOD: enum<AILOD_t>)
Set the LOD of this NPC. Accepted values are 'eLow', 'eMedium', 'eHigh'
SetHealth(param: int)
—
—

Outputs

NameDescription
—
OnFoundEnemy(param: ehandle)
—
—