OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jester on 27 Jan 2003, 15:12:39
-
I'm at a friends house and he doesn't have OFP so I can't test it but ..................... here is the Q
with this inflame true
can I put
~5 this inflame true
and have it delay for 5 seconds before it lights??
-
Hum... try a script. At the Activ. field it's not allowed to use time delay; at least in version 1.00.
better this way:
this exec "inflame.sqs"
----
~5
_this inflame true :)
-
So if I wanted a line of streetlamps along a road light up
bing
bing
bing
bing
I could script it
~2
L1 this inflame true
~4
L2 this inflame true
~6
L3 this inflame true
~8
L4 this inflame true
Was thinking of a runway lighting up ..............
THX
-
Yes Mate, However a script is read from top to bottom like a book! So your time gaps would be:
~2 (wait 2 seconds)
do this
~2 (wait 2 seconds)
do this
~2 (wait 2 seconds)
You don't need to increse the numbers like 2, 4, 6, 8.
Sounds :P good
-
Another thing is that you used th wrong syntax:
L1 this inflame true
Will cause an error. The correct syntax is:
L1 inflame true
This represents the actual lamp in it's init field. Outside the init field it's not defined.