![]() |
A simple script for you !! (WARNING: has errors)
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 :rolleyes: ) 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 :D Greetings Steve -NAT- PHP Code:
|
Wow I remember that one Steve
I was really impressed by that script.=D |
Quote:
Quote:
|
It should most certainly not be running that timeout when the effect is not to be seen.
Other than that and what Lance said, it's a decent script (construction wise) *cough*GS2isthewaveofthefuture*cough* |
Quote:
Also toweapons should not be used, even if this script is to be used offline. This certainly would have worked offline without the toweapons. |
yes you should read my text :D i said toweapons just for offline test
and that isnt very good i said too but i like effect :P + thats not one of my best....i work as NAT on Shaded Legend right now so if u have questions meet me there!! (and i can scirpt gscript2 because shaded use the engine gscript2, but i did this in gscript1 because people want to test it in editor) |
Quote:
Quote:
Plus, the script would have worked without toweapons just as a level npc. |
Quote:
|
Quote:
On the 3rd and 4th loops however, half the values have a .5 offset (and shouldn't be valid image indexes), is this what you are referring to Lance? Asside: Note that the above '.5' issue can be fixed by changing the case to <=, as this then ensures that the lengths of both 'counted loops' are both even, and the value will (in this case), always be even. Or change it to < 9.5, and then not only are they both even, but they are also both mulitples of eachother, which has other interesting properties. |
Quote:
NPC Code:this.a = (this.a < 10) ? (this.a + 0.5) : this.a = 0; Should be: NPC Code:this.a = (this.a < 10) ? (this.a + 0.5) : 0; |
no :D no time to clear errors people who cant scirpt could just learn some stuff about light and lightpositions of it :P i got a lot of work on SL right now probably later
|
Quote:
|
Quote:
|
okay :D u could remove this thread if u want xD i just like the effect because if u online and use this weapon other players can see ur mouses in form of this light :P so if many people online there many lights in level flying around lol could be used to show something or such lol but yea u right gscript2 is the future
|
Uhm, doesnt //#CLIENTSIDE mean that only the single player who is running that script sees it, not everyone else?
|
yes. Check the showimg
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; If it's below 200, it's serverside. |
wow man this is nice
|
| All times are GMT +2. The time now is 05:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.