Garry's Mod Wiki

Revision Difference

Enums/NPC_STATE#516077

<cat>enum</cat> <enumeration> <description>Enumerations used by <page>NPC:SetNPCState</page>. Serverside only.</description> <fields>{{EnumField|NPC_STATE_INVALID|-1|Invalid state</fields>⤶ <fields>⤶ <item key="NPC_STATE_INVALID" value="-1">Invalid state</item>⤶ <item key="NPC_STATE_NONE" value="0">NPC default state</item>⤶ <item key="NPC_STATE_IDLE" value="1">NPC is idle</item>⤶ <item key="NPC_STATE_ALERT" value="2">NPC is alert and searching for enemies</item>⤶ <item key="NPC_STATE_COMBAT" value="3">NPC is in combat</item>⤶ <item key="NPC_STATE_SCRIPT" value="4">NPC is executing scripted sequence</item>⤶ <item key="NPC_STATE_PLAYDEAD" value="5">NPC is playing dead (used for expressions)</item>⤶ <item key="NPC_STATE_PRONE" value="6">NPC is prone to death</item>⤶ <item key="NPC_STATE_DEAD" value="7">NPC is dead</item>⤶ </fields>⤶ </enumeration> ⤶ ⤶ {{EnumField|NPC_STATE_NONE|0|NPC default state}}⤶ {{EnumField|NPC_STATE_IDLE|1|NPC is idle}}⤶ {{EnumField|NPC_STATE_ALERT|2|NPC is alert and searching for enemies}}⤶ {{EnumField|NPC_STATE_COMBAT|3|NPC is in combat}}⤶ {{EnumField|NPC_STATE_SCRIPT|4|NPC is executing scripted sequence}}⤶ {{EnumField|NPC_STATE_PLAYDEAD|5|NPC is playing dead (used for expressions)}}⤶ {{EnumField|NPC_STATE_PRONE|6|NPC is prone to death}}⤶ {{EnumField|NPC_STATE_DEAD|7|NPC is dead}}⤶ }}