
|
Waypoints Tutorial |
|
|
|
Waypoints are an awesome improvement from Meteor
1. To make them requires some simple scripting.
About Connection
Binding an Object to a
Waypoint Now, click on the Waypoints button (keyboard W). Place one near your object. Then, continue to place waypoints in a circle until you reach your object. Right click on the last waypoint and hit Waypoint Properties. Then, type 0 as the next waypoint's ID because the very first waypoint ID is always 0. This will connect all your waypoints. Create a small rectangular sector right under the Single Start Zone. Open it's properties, make it's type land, and set it's texture to be different from the base sector's. Expand the Script Trigger section and set the Use Script Trigger Section to True. Click on Trigger Text and type the following scripting: SC_BindObjectToWaypoint(0,0);
What you have just typed is the scripting command for telling an object to get on a waypoint. In the parenthesis, the first 0 is the object's ID and and second 0 is the waypoint ID. For example, if you wanted to bind an object with an ID of 4 to a waypoint with the ID of 9, the trigger would be SC_BindObjectToWaypoint(4,9); Click out of the properties and hit the button Run Map. Move your player over the sector you created, and the object you placed should move around in a circle. |