OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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.
-
Whoops!
should be:
this switchlight "ON"
or
this switchlight "OFF"
or
this switchlight "AUTO"
-
Raptorsaurus: There is no init field in "real" streetlamps.
:beat: *Gets Shot* :beat:
-
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!
-
failing that give the streetlamp a name eg L1, L2 etc etc and have the init.sqs light it up
L1 switchlight "auto"
-
...of the lamp. Viola!
I'm trying to decide which is more annoying, "Viola" or that constant favorite, "Walla".
-
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.
-
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