NPC.CapabilitiesRemove

From GMod Wiki

Revision as of 01:59, 9 January 2011 by Disseminate (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.CapabilitiesRemove]NPC.CapabilitiesRemove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionChange an NPC's capabilities
Used onNewerServer.png
Code
 
ent:CapabilitiesAdd( CAP_MOVE_GROUND | CAP_OPEN_DOORS );
ent:CapabilitiesRemove( CAP_OPEN_DOORS );
 
OutputThe NPC cannot open doors.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox