OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Pilot on 12 Dec 2004, 04:12:29

Title: Light Direction?
Post by: Pilot on 12 Dec 2004, 04:12:29
Is there a way to set the direction of a light, and have it so it comes on automatically during the night?  In other words, it it possible to somehow combine the characteristics of Reflectors and Streetlamps?
Title: Re:Light Direction?
Post by: Planck on 12 Dec 2004, 14:37:15
Quote
In other words, it it possible to somehow combine the characteristics of Reflectors and Streetlamps?

No.....or at least not to my knowledge.

I have never been able to switch off the light cone from streetlamps, it might be possible, but then again, it might not.

If your streetlamps are inserted in a .wrp file they will come on automatically at dusk and go off again at dawn.

This is simulation streetlamp I am talking about as opposed to simulation fire.


Planck
Title: Re:Light Direction?
Post by: Pilot on 12 Dec 2004, 17:03:54
Sorry, my question wasn't very clear.

I was asking if it's possible to set the direction of the light beam on a streetlamp model.  The streetlamp model sets the direction of the light beam down.  I was wondering if I could make the light beam shine horizontal instead of down.
Title: Re:Light Direction?
Post by: Planck on 12 Dec 2004, 21:14:11
Yes, I understood your question.

Thats why I said .......No.....or at least not to my knowledge.

and also:

Quote
I have never been able to switch off the light cone from streetlamps, it might be possible, but then again, it might not.

What I meant was, not only can I not find a way to change the cone direction, but I also can't even switch the cones off.


Planck
Title: Re:Light Direction?
Post by: DBR_ONIX on 12 Dec 2004, 22:07:10
Hmm, the M2 light is more directional.. Hmm..
- Ben
Hmm, long post.. :P
Also, though it might only be in MP, the missionstart command could be used to work out time, and switch light on/off depending on time..
Title: Re:Light Direction?
Post by: Planck on 12 Dec 2004, 22:12:18
You had me all excited there DBR....I thought you had found a way to switch the cone off when I saw you had posted a reply.....How dissapointing.    :'(

::)

Planck
Title: Re:Light Direction?
Post by: Pilot on 13 Dec 2004, 00:29:41
Sorry Planck.  :-[  
I didn't realize that was your answer

Is it possible to use the landvehicles class to define my light, use Reflector for the lights, and still have the light come on by itself during the night?
Title: Re:Light Direction?
Post by: Planck on 13 Dec 2004, 00:36:37
I don't think you will be able to place the lights successfully in a wrp file if they are landvehicle class.....but I could be wrong there.  However they will not automatically switch off and on at dusk and dawn.

You can't even use an init evevthandler because they won't work for .wrp placed objects.  :(

In my opinion it would look strange anyway having the runway lights with a light cone, but thats just me.   ::)



Planck
Title: Re:Light Direction?
Post by: Pilot on 13 Dec 2004, 00:42:05
Yeah, it does look a little wierd for the lights I already have.  But these lights are the ones on the end of the runway, the ones that are green when landing and red when taking off.  I will probably just scrap the idea and go with a single, solid colored light for the end of the runway.

I will keep this thread open a little longer, and see if anyone can think of anything I can do.
Title: Re:Light Direction?
Post by: Pilot on 14 Dec 2004, 01:50:02
Ok, I sort of fixed the problem by simply adding a shield around my red and green lights.  It's not perfect, and not as pretty, but it does get the job done.

Topic Solved