Part of StarfallEx namespace
๐ External
particleEffect.attach(entity, name, pattach, options)๐ 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
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to attach the particle effect to (can be world) |
name | string | The name of the effect to create (e.g. "generic_smoke") |
pattach | number | See PATTACH enum |
options? | table | Optional table of tables (indexes 1 to 64) having the following structure: |
Returns
| Type | Description |
|---|---|
ParticleEffect | ParticleEffect object. |
Examples
No examples available.
Used In
No usages found in the codebase.