sm.melee
Information about melee attacks is located in /Data/Melee/attacks.json.
Functions
meleeAttack
sm.melee.meleeAttack( name, damage, origin, directionRange, source, delay, power )
Launches a melee attack.
Arguments:name[ string/uuid ]: The name or UUID of the attack. (nameis deprecated, use uuid instead)damage[ int ]: The damage the attack will inflict.origin[ Vec3 ]: The position of the attack.directionRange[ Vec3 ]: The direction and range of the attack.source[ player/unit ]: The source of the attack.delay[ int ]: The number of ticks before launching the attack.power[ number ]: The knockback power.