OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Uber-Pea on 06 Jun 2004, 11:51:18

Title: wait between actions - command?
Post by: Uber-Pea on 06 Jun 2004, 11:51:18
Hi, I'm pretty sure this was asked before, but search function didnt help again.

I'm looking for a command that sets a wait time between actions.
In this case it would be an activation field of a trigger/waypoint:

this exec "script1.sqs"; this wait 2 seconds; this exec "script2.sqs"

Somethin like that. I couldnt find anything in commands manual.

In this case all scripts are parachute scripts, 3 groups jumpin outta the same heli.  But as all scripts are called same time, always 3 men jump at a time which causes a hell of injuries.


Uber-Pea
Title: Re:wait between actions - command?
Post by: Loup-Garou on 06 Jun 2004, 11:59:38
You should use only use one script, like this :

Manoffirstgroup action ["EJECT",Nameofheli];unassignVehicle Manoffirstgroup

;do this with all men of the first group then wait
;Let's say 50 seconds

~50

;then the second group jumps

Manofsecondgroup action ["EJECT",Nameofheli];unassignVehicle Manofsecondgroup
Title: Re:wait between actions - command?
Post by: macguba on 06 Jun 2004, 16:47:12
I don't think there is a "wait" command that you can use in a trigger.      However, it doesn't matter:  if all else fails just make the trigger call a short script that does whatever you need.   If you have more than about two things to do when a trigger is fired that is what you should do anyway.
Title: Re:wait between actions - command?
Post by: Uber-Pea on 06 Jun 2004, 16:53:00
I always asked myself whats the countdown and timer options for in waypoints/triggers.
`What are they for?

Uba-Pi
Title: Re:wait between actions - command?
Post by: Loup-Garou on 06 Jun 2004, 19:01:16
For example, a trigger with a countdown of 3, 3, 3 means that this trigger will be activated in 3 seconds.
For waypoints : suppose you have a unit in patrol. When the unit will "come" to the end of a waypoint that have a countdown of 10, 10, 10, it means that the unit will wait 10 seconds before heading towards her next waypoint.

Hope you understand  :).
Title: Re:wait between actions - command?
Post by: Uber-Pea on 07 Jun 2004, 13:21:16
How to make waypoint loops (if possible)?? If I want a patrol or exercising squad that, when it lets say reach the fourth waypoint will go to the first one again and lets the cycle begin again, when it reaches the fourth again go to 1 aso...

Title: Re:wait between actions - command?
Post by: ponq on 07 Jun 2004, 13:40:06
make another waypoint close to the first waypoint of the group and use the type "cycle" (instead of eg "move").
Title: Re:wait between actions - command?
Post by: Uber-Pea on 07 Jun 2004, 13:48:31
uh din c cycle yet because in german it is translated witha completely different meaning. Thanks.