Library effects
Effects library for creating effects and particles.
Functions
| attachParticle( name, ent ) | Attaches a particle to an entity. |
| createEffect( name, data, allowOverride, ignorePrediction ) | Creates the given effect with the given effect data object. |
| effectData() | Returns an effect data object for use in createEffect. |
| finishParticle( ent ) | Removes a particle from an entity. |
Functions
- effects.attachParticle( name, ent )
-
Attaches a particle to an entity.
Environment:
ServerParameters:
-
name: The name of the particle. -
ent: The entity to attach it to.
-
- effects.createEffect( name, data, allowOverride, ignorePrediction )
-
Creates the given effect with the given effect data object.
Environment:
ServerParameters:
-
name: The effect's class name. -
data: The effect data object that's set up with the information you want the effect to have. -
allowOverride: If true, then Lua effects with the same name as engine effects override the engine version. -
ignorePrediction: Set to true if calling on your player.
-
- effects.effectData()
-
Returns an effect data object for use in createEffect.
Environment:
Server - effects.finishParticle( ent )
-
Removes a particle from an entity.
Environment:
ServerParameters:
-
ent: Entity to remove the particle from.
-