OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CW3BMB on 19 Jan 2003, 07:54:41

Title: light in tent question
Post by: CW3BMB on 19 Jan 2003, 07:54:41
How do you simulate a simple light?  What I want to do is start a mission in a tent at night, but not in the dark. Can't find a "light" object. I figure there has to be something by manipulating either fires, flares, or streetlights.

thanx in advance

CW3BMB
Title: Re:light in tent question
Post by: RunAwayScientist on 19 Jan 2003, 16:57:49

   I just had a thought, what if, you make a "Fire" and set it's Ini to: "this Inflame true". Then, put this command in it's Ini, don't forget the ";" to space em: "this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -2] ". That puts it BELOW ground.

    Altought it's below ground It'll generate light, and smoke...hmmm....It was a nice try, right? I'm not sure if it'll help, if the guys in the tent are smoking salmon, I think it will....

    Good Luck!

-RunAwayScientist[AF]
Title: Re:light in tent question
Post by: Trufflepig on 19 Jan 2003, 19:08:20
LOL - Smoking salmon (hmm... gives me an idea)... anyway - with a fire you always get the smoke.  But a streetlamp will work instead of the fire.  Use the same init string..."this inflame true; this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -74]"  I set it to -74 when I tried it so players running up to the tent will not see the light underground AND, by setting it so deep, not as much light will fill the area (a little more realistic).  Just put the streetlamp directly under the tent at -74.  If ya wanna be fancy set a color to it.  You can also trigger a flare (something like a flare trap) the same way, but I haven't tried that one yet!   GL!! :P
Title: Re:light in tent question
Post by: McHale on 20 Jan 2003, 00:50:38
That'd work.. but how d'you get a street lamp in the editor?  :-\
Title: Re:light in tent question
Post by: O Neil on 20 Jan 2003, 03:42:48
Get the addon  ;)

O Neil

PS: The street light adds TOO much light. Get kegys editor addon (Something like that) you can get some small lights.
Title: Re:light in tent question
Post by: CW3BMB on 20 Jan 2003, 09:57:08
Thanks for the help.