View Single Post
  #16  
Old 02-12-2007, 11:36 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
its because the ani is already created. "" doesnt unset it in other players eyes, and also, it doesnt update that fast. setting it in a timeout however would cause some major slowage.

i came up with this, its a slight modification to your gani
PHP Code:
SCRIPT
function onCreated()
{
  
withfindimg(202))
  {
    
attachtoowner true;
    
layer 2;
    
player.random( -0.5, -1);
    
player.random( -1, -0.1);

    
emitter.continueafterdestroy true;
    
emitter.nrofparticles 1;
    
emitter.emitautomatically false;

    
emitter.particle.lifetime 0.75;
    
emitter.particle.text player.attr[11];
    
emitter.particle.mode 1;
    
    
emitter.particle.red 0;
    
emitter.particle.blue 0;
    
emitter.particle.green 1;
    
    
emitter.particle.style "b";
    
emitter.particle.alpha 1;
    
emitter.particle.zoom 0.95;

    
emitter.particle.angle pi 2;
    
emitter.particle.speed 1;

    
emitter.addlocalmodifier"range"0.3750.875"alpha""replace"10);
    
emitter.addlocalmodifier"range"0.10.75"speed""replace"42);

  }
  
onTimeout();


function 
onTimeout() {
    if(
player.attr[17] != thiso.currentinstruction) {
      
thiso.currentinstruction player.attr[17];
      
with(findimg(202)) {
        
emmiter.particle.text player.attr[11];
        
emitter.emit();
      }
   }
   
setTimer(.05);
}
SCRIPTEND 
you keep the ani set as attr whatever (10 is which youre doing), then, you update player.attr[17] to something it wasnt before (anything really), and it will emit a new particle with whatever is stored in 11. Example weapon.
PHP Code:
//#CLIENTSIDE
function onCreated() 

  
player.attr[18] = "hellraventest15.gani";
  
player.attr[17] = "ab";


function 
onPlayerchats() {
  if(
player.chat == "greenytest") {
    
this.teststring player.attr[17] @ player.attr[17];
    
player.attr[17] = this.teststring.substring(1,2);
    
player.chat player.attr[17];
  }
  
player.attr[11] = "+12";

in that case, 17 is flipping between "ab" and "ba".

This method works best if youre constantly using this.
__________________
Reply With Quote