Jump to content
Sign in to follow this  
smacker909

orderGetIn question

Recommended Posts

I'm trying to get a captive to get in a chopper..

_unit doMove (position _chopper); // he doesn't move

_unit assignAsCargo _chopper); [_unit] orderGetIn true; // he doesn't move

if he was EAST and then setCaptive, should I be able to get him to move into the WEST chopper?

Share this post


Link to post
Share on other sites

It ought to be possible, have you tried to make the prisoner part of a group of captors? That ought to overcome his aversion of the other side's transport.

Regards,

Sander

Share this post


Link to post
Share on other sites

Thanks for the reply sander. I haven't tried that but will and report back.

Share this post


Link to post
Share on other sites

Okay, it was the disableAI "MOVE" causing the trouble.. I thought having _unit switchMove "" after would allow him to move, but no such luck. Now using doStop _unit ... now follows the getin order.

Share this post


Link to post
Share on other sites

Maybe it will help you to use the addwaypoint command.

Here's a way how I made a AI unit (a pilot in my case) board a heli:

group = group nameofdude;

wp0 = group AddWaypoint [Position nameofchopper, 0];
[group , 0] SetWaypointType "GetIn";

Edit:

Damn! :D I should form the habit to read threads until the end before posting something. :D Good that you could get it to work already!

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  

×