— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
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 | Unique ID that the entity will be assigned. | String | Yes |
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) through (5, 0, 0).