======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|entity's]] ID.
====Signature:====
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|
^Return Value^Description^Type^
|Result|Returns true if the ID was successfully assigned to the [[entity]], false otherwise.|[[Boolean]]|
Entity IDs are case-sensitive and must be unique among other [[entity|entities]] within the same [[map]].
====Example:====
assign_entity_id(tile[random(2, 5), 0, 0], "trap_tile");
//Results:// Assigns an ID of "trap_tile" to a random [[tile]] along [[coordinate|coordinates]] (2, 0, 0) through (5, 0, 0).
----
====Editor Node:====
{{:wiki:assign_entity_id_node.png?nolink|}}
~~NOTOC~~