View Single Post
  #4  
Old 02-10-2010, 12:35 AM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by Engine View Post
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.player.x;
    
this.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.
You're missing a closing brace at the end of the onKeyPressed event.
Reply With Quote