Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.effect.create

S๐Ÿท๏ธ Effect

Part of StarfallEx namespace

๐Ÿ”— External
effect.create(name, data, nofilter)
View on GitHub|lua/starfall/libs_sh/effect.lua:134-183
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 1 month ago

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

NameTypeDescription
namestringThe effect type name to create
datatableThe 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.