Add To Group


Adds the specified entity to a group.

Signature:

add_to_group(entity, group_name)
ArgumentDescriptionTypeRequired
entityEntity that will be added to the group.EntityYes
group_nameName of the group the entity will be added to.StringYes

Example:

add_to_group(entity["slime01"], "slimes");

Results: Adds the entity with ID “slime01” to the “slimes” group.


Editor Node: