Alright, I tired what you did and it didn't work so then I copied what you did and didn't work. I even removed all the unneccesary things in it that you said I didn't need and still nothing. I think it might have to do with the weapon npc. Here's the simplest thing I could think of to do, yet it still doesn't want to work.
Weapon
PHP Code:
//#CLIENTSIDE
function onKeyPressed() {
if(params[1] = "f"){
player.attr[20] = "enginetest11.gani";
scheduleevent("1","ClearFire", 0);
}
function onClearFire(){
player.attr[20] = NULL;
hideimg(200);
findimg(200).destroy();
}
Gani
PHP Code:
SCRIPT
function onCreated() {
with(findimg(200)){
this.x = player.x;
this.y = player.y;
emitter.nrofparticles = 1;
emitter.particle.image = "block.png";
}
}
SCRIPTEND
This will put the particle effect down once but will not destroy it or let me remove the current one and move it to my current location when i press 'f'. I'm sure that it's something simple and I'm just to autistic to realize it.