atl/sm/melee
import "atl/sm/melee"Melee attacks (sm.melee).
Functions
Section titled "Functions"func Attack(melee sm.Uuid, damage int, origin, directionRange sm.Vec3, source atl.Wrapper, delay *int, power *float64, ignore []sm.Character)Performs a melee attack from origin in directionRange (direction scaled by reach). ignore lists characters the attack passes through.
func AttackHits(melee sm.Uuid, origin, directionRange sm.Vec3, source sm.Unit) []physics.RaycastHitWhat a unit's melee attack would hit, without attacking.