Usage

Syntax: function onActionProjectile2(float hitX, float hitY, parameters) { }

Explanation

It is invoked on the clientside when a projectile shot by a clientside calling of shoot finally hits the ground or an object. The optional parameters vary from projectile to projectile depending on the usage of setshootparams.

This event can be used to create explosions on impact for grenade/bomb projectiles while direct hits should be handled by the onActionProjectile event.

Example

If used in a weapon/GUI-script:
//#CLIENTSIDE

function onActionProjectile2(hitX, hitY) {
  echo("A projectile has hit at coordinates X:" @ hitX SPC "Y:" @ hitY);
}


... echoes the coordinates where the projectile hit.

Categories

CategoryFunctionEvent
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki