Method Unit:Attack [-] [+]

The Unit tries to attack a given target

Synopsis

didAttack = Unit:Attack( who )

didAttack = Unit:Attack( who, meleeAttack )

Arguments

Unit who

Unit to attack.

boolean meleeAttack (false)
See method description.

Returns

boolean didAttack

If the Unit did not attack.

Generated on
©2026 - ALE Lua Engine