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 <page>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>