Garry's Mod Wiki

Revision Difference

Entity:AddEffects#515735

<function name="AddEffects" parent="Entity" type="classfunc">⤶ <description>⤶ Applies an engine effect to an entity.⤶ ⤶ See also <page>Entity:IsEffectActive</page> and <page>Entity:RemoveEffects</page>.⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="effect" type="number">The effect to apply, see &lt;page&gt;EF&lt;/page&gt;.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Adds a blinking effect to an entity.</description>⤶ <code>Entity:AddEffects( EF_ITEM_BLINK )</code>⤶ ⤶ </example>