OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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!!!
-
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.
-
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:
-
Thanx for the reply macguba! Works fine now!
For The real Armstrong:
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!