Entity/AddEffects

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=AddEffects
 
|Parent=Entity
 
 
|Description=Applies an engine effect to an entity.
 
|Description=Applies an engine effect to an entity.
 +
 +
See also {{ClassFunction|Entity|IsEffectActive}} and  {{ClassFunction|Entity|RemoveEffects}}.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 13:04, 11 October 2019

 Entity:AddEffects( )

Contents

Description

Applies an engine effect to an entity.

See also Entity:IsEffectActive and Entity:RemoveEffects.

Arguments

number effect

The effect to apply, see EF_ Enums.

Examples

Example

Adds a blinking effect to an entity.

Entity:AddEffects( EF_ITEM_BLINK )


Personal tools
Navigation