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 = 1 - this.on;
if (this.on == 1) {
setTimer(0.05);
}
if (this.on == 0) {
setTimer(0);
}
}
function onTimeOut() {
with (findimg(1)) {
layer = 2;
x = random(0,60);
y = 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??