Jump to content
Sign in to follow this  
hywel

How to order a uav to follow unit via script

Recommended Posts

Is there a way to call the 'follow unit' UAV command via script?

Thanks.

Share this post


Link to post
Share on other sites

did you try "driver theuav doFollow thetarget" ?

i've read that uav are controled by hiden AI

Share this post


Link to post
Share on other sites

Unfortunately doFollow only works when both units are in the same group, thanks though.

and yes the UAVs are controlled by an invisible man who vaporises upon contact with air

Share this post


Link to post
Share on other sites

I have asked a similar question, without any luck yet.

//(group SDV) setBehaviour "CARELESS";
_waypoint = (group effectiveCommander SDV) addWaypoint [boat, 0];
_waypoint setWaypointType "FOLLOW";

When I try to make a SDV to follow a boat in a script, nothing happens. I do know that "FOLLOW" is NOT in setWaypointType, but it is an option if you create a waypoint in the GUI-editor. Any ideas?

Hope that the answer isn't to far away.

Share this post


Link to post
Share on other sites

As I said in chris's post, you could either

1) use waypoint in editor

or

2) try "uav doFollow yourunit;" but note they have to be in the same group for this to work.

that's all I know, so...yeah.

Share this post


Link to post
Share on other sites
_grp = group theuav;
_unit = player;

while {true} do {

if (!alive (leader _grp)) exitWith {};

_wp = _grp addWaypoint [position _unit, 0];
_wp setWaypointType "MOVE";


sleep 1;
};

Share this post


Link to post
Share on other sites
As I said in chris's post, you could either

1) use waypoint in editor

or

2) try "uav doFollow yourunit;" but note they have to be in the same group for this to work.

that's all I know, so...yeah.

And as I told you:

That would be obvious, if it wouldn't be for that I am asking how to do this in a script.
and
objects aren't in the same group (as they shall not be).

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  

×