This hook is called when a projectile hits another entity.
Callback function
The default name for the callback function is OnProjectileHitEntity. It has the following signature:
function OnProjectileHitEntity(ProjectileEntity, Entity)
Parameters:
If the function returns false or no value, the next plugin's callback is called. If the function
returns true, no other callback is called for this event and the projectile flies through the entity.
Code examplesRegistering the callback
cPluginManager:AddHook(cPluginManager.HOOK_PROJECTILE_HIT_ENTITY, MyOnProjectileHitEntity);
|