Home   Help Search Login Register  

Author Topic: Real time actions.  (Read 698 times)

0 Members and 1 Guest are viewing this topic.

ZIKAN

  • Guest
Real time actions.
« on: 25 Mar 2003, 19:06:11 »
Basicly how would I stage a particular event  using triggers to happen at a certain time? I want a group of units to move @ a paticular time.
Say for example, Two squadrons of tanks will  move @ 0800hrs....how would I get this to work using triggers?
Thanks.
« Last Edit: 25 Mar 2003, 19:07:21 by ZIKAN »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Real time actions.
« Reply #1 on: 25 Mar 2003, 19:24:13 »
As always, use switch triggers to contro the movement of a group through its series of waypoints.    You can of course synchro waypoints if you want two or more groups to act together.

As for time, the best way is probably to time it from the start of the mission.    Say your mission starts at 07:45 and you want the tanks to move off at 08:00.     Create a trigger and synchro it with the first waypoint of the tanks

Countdown:     900    900    900
type:   switch
condition:   true

You'll have to experiment a little with the timings as OFP seconds are not necessarily exactly the same as real world seconds.   ;D
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Real time actions.
« Reply #2 on: 25 Mar 2003, 20:06:52 »
* Artak *cough*

Now what macguba there said is fine and works for 99% of missions and is easy to use and all that stuff

BUT

If you happen to have say a parameter which let's the player to decide the starting time of the mission or just want to be cool and do stuff the hard way( ;D) you'd

create waypoints for your group and in the first one's condition field type
daytime >= 8
(I don't know how often waypoints check themselves or will it work, so this is just theory)
or
create waypoints for your group and then sync a trigger to the first waypoint and type in the triggers condition field
daytime >= 8

by using the daytime command your group will start moving only at eight O'clock and not after 900 seconds.. but as I said, in most cases 'the macguba way' is just fine  ;)

..just wanted to come in here and confuse you folks some more  :-[ :-X

* Artak  ::)

 ;D
Not all is lost.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Real time actions.
« Reply #3 on: 25 Mar 2003, 20:13:52 »
A-HA!   ;D  You fell right into my trap Artak!   8)  I knew you'd come along and explain the daytime command. :P
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Real time actions.
« Reply #4 on: 25 Mar 2003, 20:17:53 »
It's the only command I really know and feel proud of  ;D

* Artak walks away proudly
Not all is lost.

ZIKAN

  • Guest
Re:Real time actions.
« Reply #5 on: 25 Mar 2003, 21:07:38 »
Thanks guys!
hmmm ask a silly question but how would i use Artak's way to set a unit off during the twilight hours?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Real time actions.
« Reply #6 on: 26 Mar 2003, 14:40:05 »
You'd have to play around with the mission and find out when twilight is on the day you choose ..... I think there are formulae for that sort of thing somewhere, or maybe I'm thinking of tides.     May not be OFPEC, might be on the official forums www.flashpoint1985.com
Plenty of reviewed ArmA missions for you to play

Flapje

  • Guest
Re:Real time actions.
« Reply #7 on: 26 Mar 2003, 18:49:35 »
just a small question to Artak, is it possible to use the daytime command in a trigger too? 8) triggers just rule over waypoints

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Real time actions.
« Reply #8 on: 26 Mar 2003, 19:22:56 »
Like all commands you can use dayTime in triggers, waypoints, init field of units, scripts ... anywhere you like.
Plenty of reviewed ArmA missions for you to play

Flapje

  • Guest
Re:Real time actions.
« Reply #9 on: 26 Mar 2003, 19:23:38 »
k, just to make sure  ;) thnx