OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Isaioux2x on 28 Apr 2004, 08:21:16
-
Yaaay, time to poke a dead questions with a stick :P
Say, i've got a mission that starts at 0:00. After the inital capture of the town. Can I change the time via the 'time' (or any other) command? ie: from night to day.
Secondly, how can (can I even) monitor the conditions of radio commands through scripts? (This after deciding for my purposes one large script, rather than many small ones, with tons of triggers would be better)
Like I want the script to proceed when Radio Alpha is called.
Not that a lot of you care but I can't get enough of these capture and hold missions. :P They make for good co-op missions. Especially if the terrain is just right and gives you the perfect vantage point to assualt incoming convoys/formations :P Helicopter gets shot down/deleted to reduce lag after a couple of seconds after it was taken. The lag isn't actually that bad at all, anyways, time to shutup :P
-
1. To change the time, use the skip time command:
using skiptime 1, will cause the time to go ahead 1 hour. Using
skiptime 11.5 will cause time to go ahead 11 and a half hours.
2. I know it's possible, I've seen it before. But i'm not sure how to do it.
-
1. To change the time, use the skip time command:
using skiptime 1, will cause the time to go ahead 1 hour. Using
skiptime 11.5 will cause time to go ahead 11 and a half hours.
2. I know it's possible, I've seen it before. But i'm not sure how to do it.
BAH! I'm always going through the comref and I manage to miss something, thanks. If anyone knows the answer to #2 it'd be greatly appreciated.
-
In the on activation field of the trigger for radio alpha put:
[this, whatever, whateverelse] exec "myscript.sqs"
where the items in the brackets are what ever parameters you need passed to the script.
-
In the on activation field of the trigger for radio alpha put:
[this, whatever, whateverelse] exec "myscript.sqs"
where the items in the brackets are what ever parameters you need passed to the script.
Yeah? I know that. ;D
However, I don't want tons of little scripts all over the place, I was wondering if I could tell if 'Alpha' has been called from within a script.