Home   Help Search Login Register  

Author Topic: Streetlamp prob  (Read 1097 times)

0 Members and 1 Guest are viewing this topic.

RedKnyte

  • Guest
Streetlamp prob
« on: 21 Sep 2002, 06:03:08 »
Here's a prob......I have to get the streetlamps OFF at night to make my mission more challenging...there's no point sniping some nut, distance 700m away where the lights illuminate his bald head and his group of...well, nuts. And there's no fun to it. So I need the lights to be "Off". So how do I do it, I can't get the switchlight string to work (I think....it kept saying something like: nearestObject [men,"Streetlamp"] switchlight[ # ] "Off" and something like expect Bool or something. Could any1 help me? And the Map is Nogova to be exact...thx in adv
« Last Edit: 21 Sep 2002, 06:04:01 by RedKnyte »

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Streetlamp prob
« Reply #1 on: 21 Sep 2002, 08:00:54 »
nearest object is broken in version 1.75, you cna use the streetlights object id to turn them off

object idnumber switchlight "Off"

RedKnyte

  • Guest
Re:Streetlamp prob
« Reply #2 on: 21 Sep 2002, 14:19:31 »
That's exactly what I did after that.....seems to be the same though. I typed this in the On Activation: Object "156589" switchlight "off". The same error came out this time saying: Object "156589" switchlight[ # ] "off"; type number, expect string or something like that... I was sure it was a lamppost or a hanging lamp ( Its the lamp at Troska's house near Dolina. You'll remeber if you play the Resistance campaign. I'm not really sure but I think I got the right number on, I'm sure of the 156 but not the rest though. You can check it out if you want and tell me if I'm correct.
« Last Edit: 21 Sep 2002, 14:23:10 by RedKnyte »

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Streetlamp prob
« Reply #3 on: 21 Sep 2002, 17:53:42 »
You typed "12123"  :o - I hope ya didn't do that in the editor,
coz that would explain yer bug, m8  :-\ :)

Like this :  object 12323 switchLight "OFF"

not this :   object "12323" switchLight "OFF"  :)



RedKnyte

  • Guest
Re:Streetlamp prob
« Reply #4 on: 22 Sep 2002, 09:05:07 »
Oh yes, I see. Thanx Tomb. It kept me wondering for about two days (darn it!).I thought there was something wrong with my Resistance(I believe black-feather....). Anyways...credit goes to all of you, Tomb and Black_feather. Now for some more edinting.........