View Single Post
  #2  
Old 02-26-2011, 01:48 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
When a projectile hits the ground it calls onActionProjectile2(x, y, param0, param1, ...), if it's the player it calls onActionProjectile(param0, param1, ...).

I.e:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setshootparams(player.nick);
  
shoot(player.xplayer.yplayer.z+1temp.angletemp.zangletemp.power"callipumppetidle""callipumppet.png");
}

function 
onActionProjectile(param) {
  
onActionProjectile2(player.xplayer.yparam);
}

function 
onActionProjectile2(pxpyparam) {
  
player.chat "Yay" SPC param "!";

__________________
Quote:
Reply With Quote