Lua Events/WeaponHitCharacter
Event
OBSOLETE
WeaponHitCharacter
Description
Triggered when a character is being hit with a hand weapon.
Parameters
- IsoGameCharacter The character whose weapon hit another character.
- IsoGameCharacter The character who's been hit by another character.
- HandWeapon The hand weapon used to hit the character.
- Float The damage inflicted to the character who's been hit.
Examples
local function WeaponHitCharacter(wielder, character, handWeapon, damage) -- Your code here end Events.WeaponHitCharacter.Add(WeaponHitCharacter)