NPC.GetNPCState
From GMod Wiki
Revision as of 14:43, 13 September 2009 by UnrealomegaBot (Talk | contribs)
Function | |
Syntax |
npc:GetNPCState( ) Where is this used? |
Description: | |
Returns the state that the NPC is in. | |
Returns: | Integer state |
In Object: | Npc |
Part of Library: | Npc |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.GetNPCState]NPC.GetNPCState [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Additional Notes
Standard states:
- NPC_STATE_INVALID = -1
- NPC_STATE_NONE = 0
- NPC_STATE_IDLE = 1
- NPC_STATE_ALERT = 2
- NPC_STATE_COMBAT = 3
- NPC_STATE_SCRIPT= 4
- NPC_STATE_PLAYDEAD= 5
- NPC_STATE_PRONE= 6
- NPC_STATE_DEAD= 7