Home   Help Search Login Register  

Author Topic: Change the WP's sequence  (Read 1063 times)

0 Members and 2 Guests are viewing this topic.

SimonRussi

  • Guest
Change the WP's sequence
« on: 04 Sep 2002, 12:26:47 »
Well, it is a long time problem for me. I have 4 guys (not in the same group) and they make their wp's and all end up in a GET IN wp with the same chopper. One or more of the men may be dead without the others knowing it. What i want is: say 3 men make to the GET IN wp, they wait some minutes for the fourth man to arrive and if he doesn't make it they group together and the go looking for him. The problems are: after the GET IN wp they all have a GET OUT wp (of course), so i want to get rid of it, i don't know which one of the 4 man is dead so i may need to send them to different places.
Please help me cause i don't want to leave men behind :).


Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Change the WP's sequence
« Reply #1 on: 04 Sep 2002, 15:49:43 »
well basically whaqt you can do is avoid using the get in waypoint - just make a move waypoint for each man at the chopper and in the 'onactivation' type:

[unitname] ordergetin true

then do the following.

Just before the waypoint where u want the guys to get in the chopper add a new waypoint (move) for all the guys.

create 1 trigger (type = switch) and syncronize it with the waypoint for joining up (create a join waypoint after the getting in waypoint).

the conditiong for this trigger should be:

not(alive unit1) or not(alive unit2) or not(alive unit3) or not(alive unit4)

now if one guy dies, the switch part of the trigger will make the other guys ignore the getin waypoint and join up - give them waypoints to search for him. (only have to give the extra waypoints for searching to the guy who will lead the group - give him a 'join and lead' waypoint where they join up.

that will sort out your problem me thinks...

now just in case, if you have the chopper synched as load with the get ins then do this:

remove the choppers load waypoint - and then place 2 waypoints there instead. In the first waypoint put this in the 'onactivation ifeld':

choppername flyinheight 0

thats will make him land...

then in the second waypoint put this in the condition field (over write the whole thing):

true and (unit1 in choppername) and (unit2 in choppername) and (unit3 in choppername) and (unit4 in choppername)

that will make him wait for the men to get in.

then on the activation field of that same waypoint type:

choppername flyinheight 40

and he will continue on his journey.

:thumbsup:
Proud Member of the Volunteer Commando Battalion

SimonRussi

  • Guest
Re:Change the WP's sequence
« Reply #2 on: 04 Sep 2002, 16:27:47 »
ok, got it.
i just have to sort out how to make them wait for a while before starting search but i think i will do it with a cutscene launched by the trigger that make them start the search and i think in this script i'll make them join up so i don't need the extra join-up wp.

Thank you very much.