Eraser-pt 0 Posted August 10, 2002 What is the command to turn on the street lamp? Another thing the unofficial operation flashpoint command reference manual doest have that command it misses some very important commands Where can i get a command reference fully completed? if is there one ;P Share this post Link to post Share on other sites
bn880 5 Posted August 10, 2002 Here http://www.flashpoint1985.com/docs/misc.html search that CMD ref for "lamp" Share this post Link to post Share on other sites
Eraser-pt 0 Posted August 10, 2002 i found the command lightON for lamps lightIsOn nearestObject [player, "StreetLamp"] != "OFF" thats doesnt work am i doing something wrong? Share this post Link to post Share on other sites
JAP 2 Posted August 10, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Eraser-pt @ Aug. 10 2002,22:15)</td></tr><tr><td id="QUOTE">i found the command lightON for lamps lightIsOn nearestObject [player, "StreetLamp"] != "OFF" thats doesnt work am i doing something wrong?<span id='postcolor'> in on activation field of trigger object [obj ID number] inflame true For streetlights you placed yourself [name of light] inflame true Without the [] ofcourse Cheers Share this post Link to post Share on other sites
TumZ 0 Posted August 10, 2002 Why do people try and answer questions with wrong answers? Before you give someone an answer I think maybe you ought to try it yourself because in your attempt to sound smart you look really stupid. The answer to your question eraser is that all streetlamps will turn on at night because all streetlamps are set to mode "auto" But to change the mode manually you use the following command, I put mine in a gamelogic: object <number> switchLight "<mode>" mode can be on, off, or auto to turn the lamp on object 173876 switchlight "on" object 173876 is the lamp located in the south part of St. Sedlo Also see my post for further info: http://www.flashpoint1985.com/cgi-bin....t=17376 Share this post Link to post Share on other sites
Othin 0 Posted August 10, 2002 Tumz, Many thanks! I've been trying to figure out a way to turn off the streetlamp (124444) north-east of the Nogovo airport for an infiltration mission. That worked wonders! Just out of curiosity I used a game logic flag and the code you provided to try to turn a buildings lights "on". I used the guard house (159566) right across from the aforementioned streetlamp. This generates a ball of light in the guardhouse itself. Is there anyway to light a building up evenly I wonder? Share this post Link to post Share on other sites
bn880 5 Posted August 10, 2002 Tumz I hope you aren't taking about me, because if he searches for lamp in the CMDREF he will get </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">lamppost switchLight mode Operand types: lamppost: Object mode: String Type of returned value: None Description: Controls lamppost mode. Mode may be "ON", "OFF", "AUTO". "AUTO" is default, lampost is on only during nighttime. Example: nearestObject [player, "StreetLamp"] switchLight "Off" <span id='postcolor'> Anyway, he wanted a good CMD ref and the info is in there. Share this post Link to post Share on other sites
joltan 0 Posted August 10, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (TumZ @ Aug. 11 2002,00:17)</td></tr><tr><td id="QUOTE">The answer to your question eraser is that all streetlamps will turn on at night because all streetlamps are set to mode "auto"Also see my post for further info: http://www.flashpoint1985.com/cgi-bin....t=17376<span id='postcolor'> What about lamps you put for example with kegety's editor addon? I have a map where I used the lamps with the speakers, and while i can turn the lights on, they shine but don't iluminate anything. You see an extremely bright ball of light, but all objects around the lamp are still in dark... The original lamps work fine (so it's not my graphics card). As I understand it, the addon only gives access to the original objects, so shouldn't the lamps work like the original ones? Share this post Link to post Share on other sites
TumZ 0 Posted August 11, 2002 OK, Too clarify some things, lol. BN880, not to you directly. I have been trying to deal with this light issue for a week now and almost all the posts I have seen either say to put nearestObject [player, "StreetLamp"] switchLight "On" or this inflame true to turn a street light on which neither work. The first generates an error and the second only works for fires. Secondly, switchLight I myslef have noticed only works with the streetlamps that are predefined on the map at placing them in the lamp itself. If you use switchLight on any other object it does generate a ball of light in the center of the object including the streetlamps in the editor upgrade. When I did the test on that I then exited the map and went back to editor and it crashed the game. Apparently it is a bug. I haven't made it into a pbo yet to see if it would crash or not. What I am going to try next is either create a gamelogic or invisble H with switchlight "on" and then move the it with setpos to where I want it. Share this post Link to post Share on other sites
Eraser-pt 0 Posted August 11, 2002 OK guys i want an answer for one thing if i add a street lamp with the editor upgrade what is the command to turn it "ON" or "AUTO" because i put the game at night and the lamps dont go on why??? what is the true command that really works? swtichlight only works with predefiened street lamps of the map and if i add new ones?? it doesnt work?? So what is the command for the street lamps i add with editor upgrade?? Cya Share this post Link to post Share on other sites
joltan 0 Posted August 11, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Eraser-pt @ Aug. 11 2002,15:38)</td></tr><tr><td id="QUOTE">OK guys i want an answer for one thing if i add a street lamp with the editor upgrade what is the command to turn it "ON" or "AUTO" because i put the game at night and the lamps dont go on why??? what is the true command that really works? swtichlight only works with predefiened street lamps of the map and if i add new ones?? it doesnt work?? So what is the command for the street lamps i add with editor upgrade??<span id='postcolor'> Switchlight works (you see a ball of light), but they won't iluminate their surroundings. I got this problem, too (see my post above). Share this post Link to post Share on other sites
Eraser-pt 0 Posted August 11, 2002 ok so how to do it for the ball iliuminate everything??? with the command switch light? Share this post Link to post Share on other sites
joltan 0 Posted August 12, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Eraser-pt @ Aug. 11 2002,16:28)</td></tr><tr><td id="QUOTE">ok so how to do it for the ball iliuminate everything??? with the command switch light?<span id='postcolor'> Ok, I solved it: I found another editor upgrade (LocMEA by Lester), that offers lamps that you can turn on/off with the 'inflame' command. They illuminate their surroundings correctly and are easy to use. There's also some other stuff - like snow and even a football I think (OFP World Cup anyone? ). I got my copy at www.mapfact.net - a german site, so if you just want the addon you can also get it here. I use it in parallel with Kegetys editor upgrade and I found no problems so far. Share this post Link to post Share on other sites
zahony 0 Posted August 12, 2002 1. take an "empty" streetlamp 2. init.: this inflame true the lamp will work Share this post Link to post Share on other sites
Eraser-pt 0 Posted August 12, 2002 Will i need ofp resistance for that editor upgrade?? i have only version 1.46 Share this post Link to post Share on other sites
joltan 0 Posted August 12, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Eraser-pt @ Aug. 12 2002,13:09)</td></tr><tr><td id="QUOTE">Will i need ofp resistance for that editor upgrade?? i have only version 1.46<span id='postcolor'> No, works with 1.46, too - it doesn't contain the new OFPR objects yet. Share this post Link to post Share on other sites
Ludovico Technique 0 Posted August 26, 2002 On a related point is there an easy way to just shutdown every streetlamp on the level with a single command? Share this post Link to post Share on other sites