Thread: GBaddy v.3.0.
View Single Post
  #3  
Old 03-19-2010, 01:40 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by jkldogg View Post
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

__________________
Quote:
Reply With Quote