Advance Light
1 KB, 14 years ago, submitted by
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.)
Sometimes the standard player light gets boring.
Sometimes the standard player light gets boring.
Crap.
{
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(
==>echo((!$myVar));
1
==>$myVar = "123 456 789";
==>echo((!$myVar));
0
Try it yours
5/5
(people may think otherwise) =/
do you say /set music (music) to work the stereo?
nice
Lose the dashes
it will work if you add a 6th number, like this: (/color:00ffff)
anyway, serious talk here. nice mod
Nope.
5/5
ontopic: this is awesome
Anyway,i give you 5 stars.