OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: angusjm on 16 Jan 2005, 11:24:24

Title: Light source
Post by: angusjm on 16 Jan 2005, 11:24:24
How can I script a light source without using an addon?  Is it possible?  The closest I have got is using the drop command, but it just glows rather than emits light.
Title: Re:Light source
Post by: nominesine on 16 Jan 2005, 11:52:33
In a cutscene or during mission game play? It's fairly easy to do workarounds in cutscenes by placing vehicles with their lights on where the camera cannot see the vehicle itself.
Title: Re:Light source
Post by: angusjm on 16 Jan 2005, 11:57:18
No, in a live mission
Title: Re:Light source
Post by: macguba on 16 Jan 2005, 13:54:12
I think there is a headlamp you can get through the editor addon, which lights up.   You could setPos it into the appropriate place.    
Title: Re:Light source
Post by: angusjm on 16 Jan 2005, 21:13:10
Works great - thanks.

Any ideas how i could make the headlight red?
Title: Re:Light source
Post by: TheCaptn on 01 Mar 2005, 16:10:46
Sorry to drag this up, but how exactly did you turn that headlamp object on?

It won't go on by itself at night, and neither inFlame or switchLight seem to work when I try them...
Title: Re:Light source
Post by: cirkut5732 on 02 Mar 2005, 21:53:08
Ya I can't get that Headlpamp to work either, Anyone know the answer, Also if it does work does the light flicker, Seems most the "inflame" lights flicker like its a fire LOL.