Home   Help Search Login Register  

Author Topic: Units wait until objective completed before moving to their waypoints  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Hey all

Here's an idea. Would anybody be able to write a script that would make a unit wait until i completed one of my objectives before moving to his waypoint or doing whatever i set him to do?

Thnx

Hauk

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Just link a trigger to the waypoint you want them to wait at.  In the trigger condition field put a boolean that will become true when the task you want them to wait for is completed.  Make sure the trigger is of type switch.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
You could do it with a script also.  What is the scenario? Maybe I could help you work out a script, but more details are needed.

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
hey raptosaurus,

the scenario i'm working on is this:
 you go off to destroy supply boats, then you go to La trinite and board a ch-47 and do a para-drop, but the way i have it now you do a lot of messing about with the moveInDriver command in the pilot's init field + he comes with you in the 5t when you leave the airport and for him to get out and board the chopper you have to drive right up to the pilots door then jump in the back yourself, it's quite messy.
Have you checked out my first mission yet, it's in "pending" and it's called Operation Knife Blade, the scenario above is the sequel.

Thnx for the tip,

Hauk