NPC.CapabilitiesRemove
From GMod Wiki
Revision as of 01:59, 9 January 2011 by Disseminate (Talk | contribs)
Function | |
Syntax | NPC:CapabilitiesRemove( Enum capability ) |
Description: | |
Similar to NPC.CapabilitiesClear, but can simply remove capabilities one by one. | |
Returns: | nil |
In Object: | Npc |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.CapabilitiesRemove]NPC.CapabilitiesRemove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Change an NPC's capabilities |
---|---|
Used on | |
Code | ent:CapabilitiesAdd( CAP_MOVE_GROUND | CAP_OPEN_DOORS ); ent:CapabilitiesRemove( CAP_OPEN_DOORS ); |
Output | The NPC cannot open doors. |