NPC.SetNPCState
From GMod Wiki
Revision as of 18:43, 25 October 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax |
npc:SetNPCState( Integer state ) Where is this used? |
| Description: | |
| Sets the state that the NPC is in to help the NPC decide on an ideal Schedule. | |
| Returns: | nil |
| In Object: | Npc |
| Part of Library: | Npc |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.SetNPCState]NPC.SetNPCState [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
| Description | N/A | ||
|---|---|---|---|
| Used on | |||
| Code |
| ||
| Output | N/A |
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