Scripting a light to change color

Post your scripting questions / solutions here

Moderator: Moderators

lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

numerous problems.

first you only have one end, it doubles over into the next statement anyway. and you have some redundant lines.

correction:

Code: Select all

main:

level waittill spawn 

thread grenade_topleft_triggered 
end

grenade_topleft_triggered: 

iprintlnbold_noloc "Great Throw!! You Scored 5 Points. 
$bottom_right_green hide

end
NOTE: your iprintln was spelled wrong and will only broadcast to the server box, you need another thread like this to broadcast to everyone inside the server.

Code: Select all

broadcast local.msg:

for(local.i = 0; local.i < local.player.length; local.i++)
        iprintlnbold_noloc local.msg

end
i think that's right, a little tired so i'm not sure if it's local.player.length or $player.length.

you'd need to change the 'great throw' line from iprintln to broadcast if you use that too.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply