View Single Post
  #23  
Old 12-13-2005, 07:20 PM
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
Yes, Thank you again Stefan, here is the code that I put with a text editor after the ANIEND at the end of the file.
It makes little concentric circles around, or following, the player.

PHP Code:
SCRIPT
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
  
x=playerx;
  
y=playery;
  
z=playerz;
  
attachtoowner true;
  
attachoffset = {0,0,0};
    
layer 2;
    
emitter.continueafterdestroy=true// looks much better!  thank you!
    
emitter.delaymin 0.05;
    
emitter.delaymax 0.1;
    
emitter.nrofparticles 180;
    
emitter.particle.lifetime 1;
    
emitter.particle.image "icemateria.gif"//or whatever image you like
    
emitter.particle.mode 1;
    
emitter.particle.alpha .4;
    
emitter.particle.red 1;
    
emitter.particle.green 1;
    
emitter.particle.blue 1;
    
emitter.particle.zoom .5;
    
emitter.particle.angle pi 2;
    
emitter.particle.spin=2.18;
    
emitter.particle.speed 5;
    
emitter.addlocalmodifier("once"00"angle""add", -5,5);
    
emitter.addlocalmodifier("range"01"alpha""replace",.4.01);
    
emitter.addlocalmodifier("range"01"zoom""replace",.5.01);
  }
}
SCRIPTEND 
However, even if I modify the x and y to be the player's x+1.5 and playery+1.5, that makes no difrence. the center of the emitter is still at the player's x and y.
__________________

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

Last edited by prozac424242; 12-13-2005 at 07:31 PM..
Reply With Quote