Hello Guys!
Hmm this isnt that hard script its very simple but i still like this light effect....
I will give u this for free use and to learn of it, i think it can be helpfull if u new to gscript....just copy this script into a npc in ur leveleditor and touch it and u will have this weapon and can try it
(use addweapon for online use and if u got NC in RC u could add it there
)
Feel free to edit it
Keep trying and scripting and if u got any Questions about any scripts or such just feel free to post them here
Greetings
Steve -NAT-
PHP Code:
//#CLIENTSIDE
//NPC made by steve
// Light effect
if(created){
setimg block.png;
color = {0,0,0,0};
timeout = 0.05;
}
if (playertouchsme){
toweapons Light Mouse;
}
if(timeout){
for(i = 0; i < 10; i ++){
this.a = (this.a < 10) ? (this.a + 0.5) : this.a = 0;
showimg this.a * i,light2s.png,mousex,mousey;
changeimgcolors this.a * i,color[0],color[1],color[2],color[3];
changeimgzoom this.a * i,random(0.1,0.9);
changeimgvis this.a * i,1;
}
timeout = 0.05;
}
if(playerchats){
if(strequals(#c,/red)) color = {0.5,0,0,0.5};
elseif(strequals(#c,/green)) color = {0,0.5,0,0.5};
elseif(strequals(#c,/yellow)) color = {0.5,0.5,0,0.5};
elseif(strequals(#c,/blue)) color = {0,0,0.5,0.5};
elseif(strequals(#c,/white)) color = {0.5,0.5,0.5,0.5};
elseif(strequals(#c,/end)) color = {0,0,0,0};
}
if (weaponfired) {
say2
Light Mouse made by Steve2#b //Dont change this Line please :P
/"colour" to change the colour.#b
Colours are red, blue, white,#b
yellow,green!#b
type "/end" to turn it off,#b
to turn it on just set a Colour.#b
}