2007.06.10, 05:48 AM
2007.06.10, 05:58 AM
It's in the '/Projectiles/Purple Ray.js' script in the 'projectileHit();' function.
spawns the ray. If you look in the docs, you can see that it's used like this:
r, g and b define the color. In the Purple Ray script they are set to 1,0,1, which means 1 red, 0 green, 1 blue, so the beam is purple (red and blue). If you set them to 1,1,0 it will be yellow, 0,1,0 will be green and 1,1,1 will be white. 0.5,0.5,0.5 will be gray, and so on.
Code:
spawn.ray(sx,sz,sy,ex,ez,ey,5,1,0,1,500);Code:
ray(x,z,y,x2,z2,y2,width,[b]r,g,b,[/b]lifeMilliSec);