— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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.
assign_entity_id(entity, entity_id)
Argument | Description | Type | Required |
---|---|---|---|
entity | Entity that will be assigned the ID. | Entity | Yes |
entity_id | ID the entity will be assigned. | String | Yes |
Entity IDs are case-sensitive and must be unique among other entities within the same map .
assign_entity_id(tile[random(2, 5), 0, 0], "trap_tile")
Results: Assigns an ID of “trap_tile” to a random tile along coordinates (2, 0, 0) and (5, 0, 0).