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

SFEX.particleEffect.attach

C๐Ÿท๏ธ ParticleEffect

Part of StarfallEx namespace

๐Ÿ”— External
particleEffect.attach(entity, name, pattach, options)
View on GitHub|lua/starfall/libs_cl/particle_effect.lua:214
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Creates a particle effect (and attaches it to an entity). number attachtype - The particle attach type (see PATTACH enum, default: PATTACH.ABSORIGIN). Entity entity - The parent entity (default: NULL). Vector position - The offset position for the given control point (default: nil). This only affects the control points of the particle effects, and will do nothing if the effect doesn't use control points.

Parameters

NameTypeDescription
entityEntityThe entity to attach the particle effect to (can be world)
namestringThe name of the effect to create (e.g. "generic_smoke")
pattachnumberSee PATTACH enum
options?tableOptional table of tables (indexes 1 to 64) having the following structure:

Returns

TypeDescription
ParticleEffectParticleEffect object.

Examples

No examples available.

Used In

No usages found in the codebase.