View Single Post
  #8  
Old 09-30-2007, 02:04 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
No that didn't work :[

Quote:
Originally Posted by RC
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
Edit:
Ok, even wierder...
PHP Code:
//#CLIENTSIDE 
function onCreated() {
  
CreateEmitter();
}
function 
CreateEmitter() {
  
with (findimg(1)) { 
    
layer 2
    
    
emitter.attachposition true
    
emitter.delaymin 6
    
emitter.delaymax 12
    
emitter.emissionoffset = {0,0,0}; 
    
emitter.firstinfront false
    
emitter.nrofparticles 1
    
emitter.maxparticles 60
     
    
emitter.particle.lifetime 12
    
emitter.particle.image "g4_particle_whitespot.png"
    
emitter.particle.mode 0
    
emitter.particle.alpha .99
    
emitter.particle.red .89
    
emitter.particle.green .76
    
emitter.particle.blue .49
    
emitter.particle.zoom 2
    
emitter.particle.angle pi/165
    
emitter.particle.speed 2
    
emitter.particle.spin 2
    
emitter.particle.stretchx 1
    
emitter.particle.strechy 1

    
emitter.addLocalModifier("range",0,12,"alpha","replace",1,0);
    
emitter.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 emitter.addLocalModifier not found at line 31 in script of Switch/Test
GraalScript: Function emitter.addLocalModifier not found at line 32 in script of Switch/Test

__________________
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.
Reply With Quote