OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Abe on 26 Sep 2005, 22:15:36

Title: Flashing lights.
Post 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).
Title: Re:Flashing lights.
Post by: Tyger on 26 Sep 2005, 23:17:05
Code: [Select]
;In a script
#Flicker
(object XXXX) switchLight "OFF"
~1
(object XXXX) switchLight "ON"
~1
goto "Flicker"
Title: Re:Flashing lights.
Post by: The-Architect on 27 Sep 2005, 09:49:33
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.
Title: Re:Flashing lights.
Post by: Mr.Peanut on 27 Sep 2005, 17:28:45
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).
Title: Re:Flashing lights.
Post by: Abe on 29 Sep 2005, 15:53:49
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.
Title: Re:Flashing lights.
Post by: 456820 on 29 Sep 2005, 18:35:20
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
Title: Re:Flashing lights.
Post by: Tyger on 30 Sep 2005, 01:00:48
Hey mate, if you've got your answer you needed, you wouldn't mind hitting the solve button, would you?  ;D
Title: Re:Flashing lights.
Post by: Abe on 30 Sep 2005, 18:24:52
Ooh...I didn't notice there was a solve button.  Oops  :(