OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Greybelly on 13 Sep 2002, 13:36:18
-
Hi Everybody,
How do I make a AA Soldier wait for a chopper to be shot down and then move to a waypoint?
I tried setting a way point with a condition of
"not (alive chopper1)"
but the unit starts running to the waypoint immediately.
I also tried
"getdammage chopper1 > .9"
which didn't work either.
I don't understand how waypoints work as you can see.
Any help would be appriciated.
-
Perhaps you put the condition in the waypoint that you want the soldier to go after shooting down the aircraft, not in the waypoint where you want it to wait. If you have two waypoints, 1 and 2 and you want a soldier to wait at the waypoint 1 until the chopper is dead and then move to waypoint 2, you have to put the condition in the waypoint 1, not in the 2.
-
Yes, the condition should be in the WP where you want them to wait.
-
Just for the avoidance of doubt, a waypoint is not completed until the condition is satisfied. In other words, a unit will wait at a waypoint until the condition in that waypoint is satisfied.
And for the sake of completeness, if you put something in the on activation field it will happen as soon as the unit gets to the waypoint area.
Your commands look ok so it does sound like a waypoint problem.
-
Yep, only had one waypoint. However when I added a second waypoint, the unit would stop at the first waypoint and never move to the second. I chopped and changed the settings for a while and got no where. I then deleted that unit (which automatically deleted the waypoints) and tried again with a fresh unit.
I added the two waypoints and it worked. So I think I found another of the games bugs/features.
Thanks for your help guys.