User Tools

Site Tools


assign_entity_id

This is an old revision of the document!


Assign Entity ID


Assigns an ID to the specified entity. An empty string value can be specified for the ID in order to remove the entity's ID.

Signature:

assign_entity_id(entity, entity_id)
ArgumentDescriptionTypeRequired
entityEntity that will be assigned the ID.EntityYes
entity_idID the entity will be assigned.StringYes

Example:

assign_entity_id(tile[2, 4, 0], "trap_tile")

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


Editor Node:

assign_entity_id.1587535023.txt.gz · Last modified: 2020/04/21 22:57 by justin