Quote:
Originally Posted by jkldogg
anyway to make guns hurt the baddy instead of swords?
|
Projectiles that hit it will trigger onActionProjectile(), and depending on the parameters of the projectiles you can have it react accordingly.
Also if the projectile is shot on the server-side it will also trigger onActionSProjectile().
PHP Code:
// NPC was hit by a shoot projectile that originated on the client-side.
function onActionProjectile() {
// Handle accordingly
}
// NPC was hit by a shoot projectile that originated on the server-side.
function onActionSProjectile() {
// Handle accordingly
}