Garry's Mod Wiki

Revision Difference

NPC:CapabilitiesAdd#528151

<function name="CapabilitiesAdd" parent="NPC" type="classfunc"> <description>Adds a capability to the NPC.</description> <realm>Server</realm> <args> <arg name="capabilities" type="number">Capabilities to add, see <page>Enums/CAP</page></arg>⤶ <arg name="capabilities" type="number">Capabilities to add, see <page>Enums/CAP</page>.</arg>⤶ </args> </function> <example> <description>Adds the CAP_USE_SHOT_REGULATOR to the NPC's capabilities.</description> <code>self:CapabilitiesAdd(CAP_USE_SHOT_REGULATOR)</code> ⤶ </example> <description>Adds the `CAP_USE_SHOT_REGULATOR` to the NPC's capabilities.</description> <code>self:CapabilitiesAdd( CAP_USE_SHOT_REGULATOR )</code> </example>