OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Crunch on 25 Jun 2004, 00:11:31

Title: @ _Time??
Post by: Captain Crunch on 25 Jun 2004, 00:11:31
Hi Everyone!

   I haven't been here for a long time. Last time I tryed the site was down. Glad to see it back up!


I started editing a little again. My question:

I want a western unit to kill a civilian at 0700. So in a script I typed:

@ 0700

Unit DoTarget Prey
~2
Unit DoFire Prey


I'm doing something wrong. I think I don't typer the time in properly. Anyone can help me?

            Thanx in advance

P.S. Is OFP2 really coming out at the end of the year?? WOOHOO!!!
Title: Re:@ _Time??
Post by: macguba on 25 Jun 2004, 00:18:26
You need a condition with an @ command:  you have no condition.   What you need is something like

@ dayTime >= 7

but don't quote me on the syntax.

This is quite CPU intensive and, assuming the last second isn't critical, you'd be better of with something like

#loop
~5
? dayTime >= 7 goto "shoot"
goto "loop"

#shoot
loon1 doTarget etc etc

The signs of OFP2 are good at the moment.  However, I'll believe it when I see it.    
Title: Re:@ _Time??
Post by: dmakatra on 25 Jun 2004, 08:10:39
P.S. Is OFP2 really coming out at the end of the year?? WOOHOO!!!

Who said that? Gimme link, LINK NOW!!!!

:beat: *Gets Linked* :beat:
Title: Re:@ _Time??
Post by: Captain Crunch on 26 Jun 2004, 00:58:11
Thanx for the reply macguba! Works fine now!

For The real Armstrong:

Quote
Who said that? Gimme link, LINK NOW!!!!


http://www.codemasters.com/flashpoint2/uk/operationflashpoint2.php (http://www.codemasters.com/flashpoint2/uk/operationflashpoint2.php)

But like macguba said, I'll believe it when I see it! (There might be delays as it often happens with games.) But I can be patient for such piece!