User Tools

Site Tools


assign_entity_id

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
assign_entity_id [2020/04/23 11:50] justinassign_entity_id [2023/01/02 21:26] (current) justin
Line 12: Line 12:
 |entity|[[Entity]] that will be assigned the ID.|[[Entity]]|Yes| |entity|[[Entity]] that will be assigned the ID.|[[Entity]]|Yes|
 |entity_id|Unique ID that the [[entity]] will be assigned.|[[String]]|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]]|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 19: Line 22:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-assign_entity_id(tile[random(2, 5), 0, 0], "trap_tile")+assign_entity_id(tile[random(2, 5), 0, 0], "trap_tile");
 </code> </code>
 //Results:// Assigns an ID of "trap_tile" to a random [[tile]] along [[coordinate|coordinates]] (2, 0, 0) through (5, 0, 0). //Results:// Assigns an ID of "trap_tile" to a random [[tile]] along [[coordinate|coordinates]] (2, 0, 0) through (5, 0, 0).
assign_entity_id.1587667846.txt.gz · Last modified: 2020/04/23 11:50 by justin