Jump to content
nivimar

Waypoints-how to get a spawn unit to run into a building?

Recommended Posts

Trying to start opfor out in a base. Than have them run to unmanned buildings and structures to garrison them. 2d editor had Postion 1,2,3,4 etc... eden doesn't have that.

Share this post


Link to post
Share on other sites

It's a bit of work, but his is how I do it;
 
You need to know the coordinates of where you want the unit to go first, so you need to place a unit there and then copy down its x, y and z coordinates.
Place the unit where you want it to be before moving and attach a waypoint. Enter this in its onact field;
    this setPosATL [x,y,z];
It should look something like this;
    this setPosATL [14594.7,16754.9,3.72901];
In this example, as soon as the unit reaches the waypoint, it will place the unit on the SW roof section of the Main Airport Terminal in Altis.

Sometimes I also like to add in its stance, direction its facing, etc...
To do that, I , again, place a unit at a point I want the unit to face and, again, record the coordinates.
Then use THOSE coordinates like this (again...in the waypoints onact field);
    this setPosATL [14594.7,16754.9,3.72901]; this setunitpos "middle"; this commandWatch [14754.9,16510,1000];
In this example, as soon as the unit reaches the waypoint, he will again be placed on the SW roof section of the Main Airport Terminal, crouching and watching the taxiway to the SW of his position.

 

As I stated, a bit of work, but I'm not gifted in scripting. I'm pretty sure there are easier ways to do it.

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

×