Part of StarfallEx namespace
effect.create(name, data, nofilter)Description
Creates an effect data structure angles - Angle angle of the effect attachment - number Entity attachment id to attach to color - number The color to set the effect (This is an 8 bit color integer specific to the effect implementation) damagetype - number The damage type of the effect entindex - number The entity index to set the effect to (SERVER only) entity - Entity entity to set the effect to flags - number Flags to add to the effect hitbox - number The hitbox id of the effect magnitude - number A magnitude value of the effect materialindex - number The material index of the effect normal - Vector A normal vector of the effect origin - Vector The origin vector of the effect radius - number The radius value of the effect scale - number The scale value of the effect start - Vector the start vector of the effect surfaceprop - number The surfaceprop id of the effect
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The effect type name to create |
data | table | The effect data table with keys: |
nofilter? | boolean | (Optional) Make the effect play for everyone, even in predicted hooks. Only affects Server-side effects. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.