Jump to content
Sign in to follow this  
santafee

Enless asked Question-Heli waiting

Recommended Posts

im allready angry about myself to ask this,but again it is just NOT working.

Heli1 flying to WP1 with onactivion "Heli1 land "Get In".

Nice..the Heli is hovering and guys can enter it

WP2 should be with condition "[Hostage1,Hostage2] in Heli1,so it starts when they in.Chopper is just ignoring the condition on WP2,hovering for 1 SEC and gettin the next WP...Why is that not working?thx............Also tried without array- "Hostage1 in Heli1

Share this post


Link to post
Share on other sites

The WP2 condition isn't the deciding factor of when the unit goes to WP2, just of when the "On Act" of WP2 gets fired. To control when the unit moves to WP2, you gotta sync another unit's waypoint or a trigger to WP1, however that also affects/delays the firing time of the "On Act" of WP1. Tryin to figure this out...

EDIT:

OK, if this is possible without scripting idk how. Here's how I get it to work. Only way I can figure it out is to make your WP1 the chopper's last waypoint, then add another waypoint for it once the units are inside.

1) Name your chopper's group whatever you want, for this example:

HeliRide = group Heli1;

2) Keep WP1 the same, delete WP2.

3) Create a marker, example named "extract", where you want it to fly to after picking up.

4) Create a trigger.

[i]Condition:[/i]
Hostage1 in Heli1 && Hostage2 in Heli1;

[i]On Act:[/i]
_extract = HeliRide addWaypoint [getMarkerPos "extract", 0];

That's it, just gotta make that one trigger and add a marker. If you need it to do something when it gets to that waypoint, look up setWaypointStatements I think is the command.

Edited by JDog

Share this post


Link to post
Share on other sites

After some creative tries,it works like soo often with an absolute easy way...:p

WP1 : onactivation "Heli land "Get In"

WP2 : 1 meter from WP1 away,normal move waypoint with this condition: Hostage1 in Heli1 AND Hostage2 in Heli1

WP3 : the far away waypoint,move only

Thx for your help anyway!

Share this post


Link to post
Share on other sites

Yea I was gonna suggest that but it gets messy sometimes, plus I wasn't sure if the "get in" command would still work or if he'd pull up while staying in the same spot. Oh well at least you figured it out on your own :)

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  

×