User Tools

Site Tools


platforms

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
platforms [2019/12/16 20:56] justinplatforms [2021/04/21 20:14] (current) justin
Line 32: Line 32:
 To move a platform to a specific waypoint during game time, you can use the [[Move Platform]] scripting function. For example, the script below will move the platform tile (with entity ID of "elevator") to its "Floor 2" waypoint. To move a platform to a specific waypoint during game time, you can use the [[Move Platform]] scripting function. For example, the script below will move the platform tile (with entity ID of "elevator") to its "Floor 2" waypoint.
  
-<code python+<code bauxite
-move_platform(entity["elevator"], "Floor 2", false)+move_platform(entity["elevator"], "Floor 2", false);
 </code> </code>
  
-The third argument, a [[Boolean]] value of true or false, instructs the game whether or not the current script should wait until the platform has reached its destination waypoint before proceeding. This argument is optional and defaults to false.+The third argument, a [[Boolean]] value of true or false, instructs the game whether or not the current script should wait until the platform has reached its destination waypoint before proceeding further into the script. This argument is optional and defaults to false.
  
 ~~NOTOC~~ ~~NOTOC~~
  
platforms.txt · Last modified: 2021/04/21 20:14 by justin