User Tools

Site Tools


add_character

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
add_character [2020/06/09 09:28] justinadd_character [2023/01/02 21:15] (current) justin
Line 17: Line 17:
 The [[remove_entity|Remove Entity]] function can be triggered later to remove a [[character|character]] that was previously added to the scene with the Add Character function. The [[remove_entity|Remove Entity]] function can be triggered later to remove a [[character|character]] that was previously added to the scene with the Add Character function.
 </WRAP> </WRAP>
 +
 +^Return Value^Description^Type^
 +|Character Added|Returns a reference to the [[character]] that was added.|[[Entity]]|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-add_character("purple_slime", "dungeon_door_01", "slime_01")+add_character("purple_slime", "dungeon_door_01", "slime_01");
 </code> </code>
 //Results:// A purple slime will be added to the [[map|map]] on the [[tile|tile]] having ID "dungeon_door_01" and will be assigned an ID of "slime_01". //Results:// A purple slime will be added to the [[map|map]] on the [[tile|tile]] having ID "dungeon_door_01" and will be assigned an ID of "slime_01".
add_character.1591720127.txt.gz · Last modified: 2020/06/09 09:28 by justin