Garry's Mod Wiki

Revision Difference

NPC:CapabilitiesAdd#510689

<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 &lt;page&gt;CAP&lt;/page&gt;</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>