— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Effects are visual particle effects created in the Effect Editor (e.g. fire, rain, snow, fountains, sparks, etc.). They can be added to a map in the Map Editor by selecting one of your project's effects from the assets tab on the right. They can also be attached to a model's attach point in the Model Maker or added dynamically in-game via the Add Effect scripting function. Since an effect is a type of entity, they can be removed from the scene completely via the Remove Entity function.
It's important to note that “One-Shot” effects added via the Add Effect function will need to be triggered using the Enable Effect function once they've been added to the map (or whenever the particles need to be emitted).
Refer to the table below for a list of effect properties that can be accessed from a script. If the property's value can be changed using an assignment statement, it will be noted in the description.
Property | Description |
---|---|
<effect>.id | Entity ID of the effect. This can be used to either retrieve or change the ID of the effect. |
<effect>.type | Type of entity, in this case the constant value EFFECT. |