OnProjectileHit

Usage

void OnProjectileHit( int ProjectileTypeNumber, int PosX, int PosY, int PosZ, int angle, int OwnerObjectId)


Summary

This event fires whenever a projectile hits an object or solid terrain.


More Information

ProjectileTypeNumber = The type of projectile that hit.
PosX, PosY, PosZ = the contact coordinates (Pass these coordinates SC_ApplyDamageToArea to apply damage)
int angle = the angle of the projectile
int OwnerObjectId = The object ID of the object that fired this projectile (this value can also be -1)

This event is not triggered when projectiles go out of range.  Out if range projectiles and simply removed.

This function is generally located in the game script.  If you override this function in a map script then the game script's version will not be called.


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator