OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Abe on 26 Sep 2005, 22:15:36
-
Is it possible to make streetlights, or any light, flash.
I'm making an infiltration mission where detection sounds an alarm (which I've done) but is it possible to have lights within the base flash (I've got a set of coloured street-lights).
-
;In a script
#Flicker
(object XXXX) switchLight "OFF"
~1
(object XXXX) switchLight "ON"
~1
goto "Flicker"
-
Yep what Tyger said. A fast loop (or however fast you want it) which turns the lights on and off. Very simple to do and would have the desired effect.
I did this in my Deep Water mission. I simulated a power station going down and had the lights flicker before they went off. Simple and looks good if I may say so.
-
Are you making a disco mission?
Is it possible to make streetlights, or any light, flash.
I'm making an infiltration mission where detection sounds an alarm (which I've done) but is it possible to have lights within the base flash (I've got a set of coloured street-lights).
-
Are you making a disco mission?
No. I'm trying to make a mission where a small team of Spec-Ops have to infiltrate an enemy base, destroy a couple of targets and assasinate a general, then exfiltrate.
I've set a trigger so detection of the Spec-Ops means a QRF arrives on choppers and BMP's and over-runs the base. Also, a klaxton alarm sounds...but I thought flashing "security lights" in some buildings would be an interesting effect.
No disco.
Thanx for the help guys.
-
a disco mission now thats a mission you dont see everyday some ones got to make one of them
also it sounds like you have solved your prob so click the solve button lower left corner of your thread
-
Hey mate, if you've got your answer you needed, you wouldn't mind hitting the solve button, would you? ;D
-
Ooh...I didn't notice there was a solve button. Oops :(