User Tools

Site Tools


add_waypoint

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
Last revisionBoth sides next revision
add_waypoint [2020/07/23 21:30] justinadd_waypoint [2023/04/28 16:34] justin
Line 12: Line 12:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|tile| |[[Entity]]|Yes| +|tile|[[platforms|Platform tile]] to which the waypoint will be added.|[[Entity]]|Yes| 
-|waypoint_name| |[[String]]|Yes| +|waypoint_name|Name of the waypoint.|[[String]]|Yes| 
-|waypoint_coordinate| |[[Coordinate]]|Yes|+|waypoint_coordinate|[[Coordinate]] of the waypoint.|[[Coordinate]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 22: Line 22:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-add_waypoint(entity["raft"], "east_river_bank", coord[7, 1, 0])+add_waypoint(entity["raft"], "east_river_bank", coord[7, 1, 0]);
 </code> </code>
 //Results:// A new waypoint will be added to the [[tile]] with an ID of "raft". The waypoint will be named "east_river_bank" and will be located at [[coordinate]] (7, 1, 0). //Results:// A new waypoint will be added to the [[tile]] with an ID of "raft". The waypoint will be named "east_river_bank" and will be located at [[coordinate]] (7, 1, 0).
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Add Waypoint** function to...+Use the **Add Waypoint** function along with the [[Create Platform]] function to allow the player to dynamically place a raft that they can then use to cross a wide river.
 </WRAP> </WRAP>
  
add_waypoint.txt · Last modified: 2023/04/28 16:40 by justin