User Tools

Site Tools


add_effect

This is an old revision of the document!


Add Effect


Adds an effect at the specified coordinate within the map. The entity ID is optional and will be assigned to the new effect if supplied.

Signature:

add_character(effect_name, coordinate, entity_id)
ArgumentDescriptionTypeRequired
effect_nameParticle effect to use for the new effect.StringYes
coordinateCoordinate where the effect will be placed.CoordinateYes
entity_idUnique entity ID that will be assigned.StringNo

The Remove Entity function can be triggered later to remove an effect that was previously added to the scene with the Add Effect function.

Return ValueDescriptionType
Effect AddedReturns a reference to the effect that was added.Entity

Example:

add_effect("flame", coord[0, 0, 0], "flame_01");

Results: A flame effect will be added to the map at the XYZ coordinate of (0, 0, 0) and will be assigned an ID of “flame_01”.

Use the Add Effect function to…


Editor Node:

add_effect.1706393749.txt.gz · Last modified: 2024/01/27 14:15 by justin