OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mystic80 on 10 Oct 2003, 16:56:37

Title: Light qns
Post by: mystic80 on 10 Oct 2003, 16:56:37
Well since i cant find any qns from other threads i might jus try and ask in this forum.

is there anyway where u can get to light up the streetlamp that u made?
in the malden map, there are these streetlamps which jus light up without any sqs scripts.

im jus hoping anyone would give me an ans how do i made my own streetlamp that i made, lit up. is it done under p3d file? if so which component name?

anyone help me?
Title: Re:Light qns
Post by: Raptorsaurus on 11 Oct 2003, 04:56:41
Mystic,

In the init field put --

this inflame true

this will  make it light up.  To make it turn off put--

this inflame false

to make it light only at night and turn off during the day I think you put

this inflame auto

but I'm not sure about this last one.  I there is more on this topic at this site.  Try doing a search using "street lights" as your search topic.

Title: Re:Light qns
Post by: Raptorsaurus on 13 Oct 2003, 20:40:31
Whoops!

should be:

this switchlight "ON"

or

this switchlight "OFF"

or

this switchlight "AUTO"

Title: Re:Light qns
Post by: dmakatra on 13 Oct 2003, 21:14:32
Raptorsaurus: There is no init field in "real" streetlamps.

:beat: *Gets Shot* :beat:
Title: Re:Light qns
Post by: General Barron on 16 Oct 2003, 02:26:42
Use this addon here. (http://ofp.gamezone.cz/unofaddons/streetlamp.zip) I'm not sure who made it, but it works. Just place one of the streetlamps it adds under the "objects" menu, then type: "this inflame true" in the init field of the lamp. Viola!

Title: Re:Light qns
Post by: Terox on 16 Oct 2003, 17:12:58
failing that give the streetlamp a name eg L1, L2 etc etc and have the init.sqs light it up

L1 switchlight "auto"
Title: Re:Light qns
Post by: m21man on 16 Oct 2003, 23:28:25
Quote
...of the lamp. Viola!

I'm trying to decide which is more annoying, "Viola" or that constant favorite, "Walla".
Title: Re:Light qns
Post by: Torak on 17 Oct 2003, 12:19:26
Mais bon dieu, tous les deux sont surement mieux que du francais vrai? C'est une langue emmerdant...


Apologies to any French people here... I just prefer Dutch.
Title: Re:Light qns
Post by: PsyWarrior on 17 Oct 2003, 16:04:24
Firstly, "walla" is much more annoying. it shows the author's complete ignorance. "viola" isn't nearly as bad, it's just as likely to be a typo.

Sorry, off topic...

I'm not sure if this isn't an addon editing question rather than a scripting question. Since P3D files, .cpp files etc. are out of my area of expertise, I refer you to the addons editing board for help on this sort of thing.

Alternatively, if it is scripting you're looking for, there are some streetlight scripts available in the editing depot which may prove useful.

-Supr. Cmdr. PsyWarrior
-Psychic Productions