View Single Post
  #6  
Old 09-30-2007, 12:53 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Okay thanks

BTW It wasn't that it needed to be img number 200 or higher...

Edit:
LOL I don't like this emitter system :[

PHP Code:
//#CLIENTSIDE 
function onCreated() {
  
CreateEmitter();
}
function 
CreateEmitter() {
  
with (findimg(1)) { 
    
layer 2
    
with (emitter) {
      
attachposition true
      
delaymin 10
      
delaymax 15
      
emissionoffset = {0,0,0}; 
      
firstinfront false
      
nrofparticles 1
      
maxparticles 60
     
      
particle.lifetime 12
      
particle.image "g4_particle_whitespot.png"
      
particle.mode 0
      
particle.alpha .99
      
particle.red .89
      
particle.green .76
      
particle.blue .49
      
particle.zoom 2
      
particle.angle pi/165
      
particle.speed 2
      
particle.spin 2
      
particle.stretchx 1
      
particle.strechy 1

      
addLocalModifier("range",0,12,"alpha","replace",1,0);
      
addLocalModifier("range",0,12,"zoom","replace",2,0);
    }
  }
}

function 
onWeaponFired() {
  
this.on this.on;
  if (
this.on == 1) {
    
setTimer(0.05);
  }
  if (
this.on == 0) {
    
setTimer(0);
  }
}

function 
onTimeOut() {
  
with (findimg(1)) {
    
layer 2;
    
random(0,60);
    
random(0,60);
    
emitter.emit();
  }
  
setTimer(0.05);

NPC Code:
GraalScript: Function addLocalModifier not found at line 31 in script of Switch/Test
GraalScript: Function addLocalModifier not found at line 32 in script of Switch/Test



Suggestions??
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 09-30-2007 at 01:53 AM..
Reply With Quote