Thread: GBaddy v.3.0.
View Single Post
  #4  
Old 03-19-2010, 05:45 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by fowlplay4 View Post
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

I think this should be built into the next version.
Reply With Quote