Stun in "Melee Attack"
Posted: Tue Apr 28, 2015 6:22 am
We're trying to make a weapon have a stun chance on melee attack, but cannot find the correct syntax for the component. For example:
{
class = "MeleeAttack",
name = "slash",
uiName = "Power Slash",
energyCost = 25,
pierce = 15,
attackPower = 32,
--stunChance = 80,
buildup = 2,
cooldown = 6,
swipe = "horizontal",
attackSound = "swipe_heavy",
gameEffect = "Buildup: 2 seconds",
},
stunChance = 80, of course, does nothing. What would be the correct code?
{
class = "MeleeAttack",
name = "slash",
uiName = "Power Slash",
energyCost = 25,
pierce = 15,
attackPower = 32,
--stunChance = 80,
buildup = 2,
cooldown = 6,
swipe = "horizontal",
attackSound = "swipe_heavy",
gameEffect = "Buildup: 2 seconds",
},
stunChance = 80, of course, does nothing. What would be the correct code?