Jump to content
Sign in to follow this  
thetrooper

Spawned unit waypoints

Recommended Posts

I've seen a couple of complicated code for group waypoints.

I got a singe spawned unit, trying to get him to move. Looking at the wiki, but this doesn't seem to work?

///Waypoint 1
[en3_1Grp, 1] setWPPos markerPos "en3_wp1";
[en3_1Grp, 1] setWaypointSpeed "LIMITED";
[en3_1Grp, 1] setWaypointType "MOVE";
///Waypoint 2
[en3_1Grp, 2] setWPPos markerPos "en3_wp2";
[en3_1Grp, 2] setWaypointSpeed "LIMITED";
[en3_1Grp, 2] setWaypointType "MOVE";
///Waypoint 3
[en3_1Grp, 3] setWPPos markerPos "en3_wp3";
[en3_1Grp, 3] setWaypointSpeed "LIMITED";
[en3_1Grp, 3] setWaypointType "CYCLE";

Share this post


Link to post
Share on other sites

You need to add a waypoint first.

///Waypoint 1
wp1 = en3_1Grp addWaypoint [markerPos "en3_wp1", 10];
[en3_1Grp, 1] setWPPos markerPos "en3_wp1";
[en3_1Grp, 1] setWaypointSpeed "LIMITED";
[en3_1Grp, 1] setWaypointType "MOVE";
///Waypoint 2
wp2 = en3_1Grp addWaypoint [markerPos "en3_wp2", 10];
[en3_1Grp, 2] setWPPos markerPos "en3_wp2";
[en3_1Grp, 2] setWaypointSpeed "LIMITED";
[en3_1Grp, 2] setWaypointType "MOVE";
///Waypoint 3
wp3 = en3_1Grp addWaypoint [markerPos "en3_wp3", 10];
[en3_1Grp, 3] setWPPos markerPos "en3_wp3";
[en3_1Grp, 3] setWaypointSpeed "LIMITED";
[en3_1Grp, 3] setWaypointType "CYCLE";

but as your using dostop en3_1; in your previous code it won't move. you need to remove that command

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×