View Single Post
  #1  
Old 09-22-2005, 04:28 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
particle emitter question

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.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote