View Single Post
  #3  
Old 11-09-2001, 08:33 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
humm try this

NPC Code:
if(weaponfired){
this.checkx = playerx + 1.5 + vecx(playerdir) * 2;
this.checky = playery + 1.5 + vecy(playerdir) * 2;
if(onwater(this.checkx,this.checky)){
setplayerani watercanfill,;
setstring client.water_sprays,4;
freezeplayer 2.5;
}elseif(strequals(#s(client.water_sprays),0)){
setplayerani watercan,;
freezeplayer 2.5;
}else{
triggeraction client.checkx,client.checky,water_sprays,;
setplayerani watercanspread,;
setstring client.water_sprays,#s(client.water_sprays)-1;
freezeplayer 1.4;
}
}



I haven't tested it or anything I just wrote it off the top of my head so there might be a few small bugs
__________________
Thanks,
-KJL
Reply With Quote