Steam Avatar
You aren't signed in

Advance Light

1 KB, 14 years ago, submitted by Truce

Before you ask: no, this isn't really a useful mod. It's like the Vehicle Stereo, as in it's just one of those mods you can mess around with, and use to have fun with friends. By typing /setlight name, you can set your light to any light the server has. For example, /setlight RGB and /setlight Yellow Blink. Then, when you equip your light with the light button, your light will be whatever you set it to.

Fixed a small typo in the script on Sept. 8th, 4:45 EST time. If you downloaded before then, I suggest you re-download, but it is NOT required. (It doesn't affect the outcome of the script, and that is why I didn't add it as an update.)

cdog1st
I will not DL ti'll approval.
blocknight
Yay approved

Sometimes the standard player light gets boring.
blocknight
Yay approved

Sometimes the standard player light gets boring.

Crap.
Code:
   if(!$LighList)
   {
      for(%i = 0; %i < DatablockGroup.getCount(); %i++)
      {
         %obj = DatablockGroup.getObject(%i);
         
         if(%obj.getClassName() $= "fxLightData" && %obj.uiName !$= "")
            $LightList = $LightList SPC %obj;
      }
      
      $LightList = trim($LightList);
   }


$LighList will never equal true. Ever. Even if you had named it $LightList and it got a datablock string put towards it, strings evaluate to 0.

[code]if(
Demian
WIN!
Double post fail. Nice, ive wanted this for quite awile.
Truce
Iban,

Code:
==>$myVar = "";
==>echo((!$myVar));
1
==>$myVar = "123 456 789";
==>echo((!$myVar));
0


Try it yours
Truce
Oh, fail; I typo'd the var name in the script. It still returns false though if the string has content.
Gigasonic95
Awesome!
azlowmana
nice MOD i always wanted something like this but nobody had the brains to do it 5-5 your welcome
Legend
Hmm. I was thinking of making this for vehicles and making custom lights for it, such as Police Siren and Reverse blinker lights. But this works just as well, All i gotta do is make the lights :D.
SpaceBlock
i become stressed when pictures are not added
Aperture
This isen\'t supposed to have pictures numbnut. They\'re lights,
Ikoyian
Wtf you mean by it isn\'t a usefull mod, it\'s bloody brilliant, I\'ve been looking for this for quite a while.

5/5

(people may think otherwise) =/
KyleL435
I tryed it on a server and it set my normal light
SgtBob
EPIC!!!!!
blocklandrocks
usefull,help tough
do you say /set music (music) to work the stereo?
nice
Rocketdud
I have been wanting this!!!
DigitalBanana
@Ikoyian

Lose the dashes
BlackTide0
i love it! super epic 5/5
Uberzolik
Awesome! :3
keesfani
Cool =3
izaak
LOL COOL Time for mages!
hime55
does this work?
hime55
really? it working :3
thecableguy
@hime55

it will work if you add a 6th number, like this: (/color:00ffff)

just like this :P
RU55IAN R3B3L
(/color:00ffff) super LOL X3
Ruiner369
(/color:333333) Sweet =3
police force
(/color:00ffff) does it work?
anyway, serious talk here. nice mod
Mega Bear V2
Couldn't we just use the event OnActivate>SetPlayerLight? I'm not sure if that's the event, but there's one similar to it.
Four Flames Ninja
I like this idea, I think I might actually have some use with this... no clue really what to do with it, but still, 4.5/5. (-.5 cuz... you know... it really isn't a five star addy, but I'll still rate it in stars 5/5)
CameronOwnz
(/color:00fff) Does thi work D:?
CameronOwnz
Nope :D
mario man
nice :D
Matthew
@ Caneron
Nope.
Chris_Ridiculous
I belive it DOES work. I belive its < color:(code) >. So, Yes.
CRACKHEAD54746
(\color:piepie5/) does this work
Corecska
LoL! I love color codes!


5/5!
Alxetora
Yes.
RallyBlock
Thats cool!

5/5
CrazyMan501
5/5 :D
TheAddon
EPIC 5/5
charlie
This is awesome oh and by the way guys its not (color:code) (it automaticly sets your color whenever you end with the >)
noah1786
i get the thing but i fergot the font thing...
eriktraps2
Haha im white
eriktraps2
Racist .
Mario
lolz colurz
Mr1block
God i hope this is colored
justin12
It failed to work on my server.
orlyguy
offtopic: how do you guys can make font size big becasue when i do it give me a empty comment


ontopic: this is awesome
blocko555
Is is coloured?
blocko555
oh shit
batman
@blocko555 TEST
batman
Aw
Black Mesa Defender
Advanced lights in karts + shaders = hot neons
Anyway,i give you 5 stars.