NPC.CapabilitiesRemove

From GMod Wiki

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