NPC/CapabilitiesRemove

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 12: Line 12:
 
}}
 
}}
 
{{Example
 
{{Example
|Description=It will remove the CAP_USE_SHOT_REGULATOR if the NPC has it.
+
|Description=Removes the CAP_USE_SHOT_REGULATOR capability, if the NPC has it.
 
|Code=self:CapabilitiesRemove(CAP_USE_SHOT_REGULATOR)
 
|Code=self:CapabilitiesRemove(CAP_USE_SHOT_REGULATOR)
 
}}
 
}}

Latest revision as of 04:18, 19 August 2014

 NPC:CapabilitiesRemove( )

Contents

Description

Remove a certain capability.

Arguments

number capabilities

Capabilities to remove, see CAP_ Enums

Examples

Example

Removes the CAP_USE_SHOT_REGULATOR capability, if the NPC has it.

self:CapabilitiesRemove(CAP_USE_SHOT_REGULATOR)


Personal tools
Navigation