Ok, I read the graal wiki guide and the document file posted here on particle emitters, but why does this code not work? And its a weapon on the server.
NPC Code:
//test of particle engine
//#CLIENTSIDE
function onCreated() {
showimg(1,"block.png",player.x,player.y);
with (findimg(1)) {
image = "light2.png";
layer=1;
x = player.x - 3;
y = player.y - 3;
alpha = .9;
emitter.attachposition=false;
emitter.delaymin=.05;
emitter.delaymax=1.0;
emitter.emissionoffset=playerx-3,playery-1,2;
emitter.firstinfront=true;
emitter.nrofparticles=3;
emitter.maxparticles=50;
//particle attributess
emitter.particle.lifetime=5;
emitter.particle.checkbelowterrain=false;
emitter.particle.clippingbox=0,0,-1,64,64,64;
emitter.particle.image=light2.png;
emitter.particle.mode=0;
emitter.particle.alpha=.5;
emitter.particle.zangle=pi;
emitter.particle.stretchx=2;
}
}
if (weaponfired)
{
emitter.emit();
}
nothing shows up on the screen when i fire the weapon.