Lua Events/Attack

From PZwiki



Event

OBSOLETE
Attack

Description

Triggered when a character is performing an attack.

Parameters

  • IsoLivingCharacter The character who's performing the attack.
  • Float The charge time of the weapon used to perform the attack.
  • HandWeapon The hand weapon used to perform the attack.

Examples

local function Attack(livingCharacter, chargeTime, handWeapon)
	-- Your code here
end

Events.Attack.Add(Attack)

See also