ObjectCombatReach
Returns the combat reach of a WowGameObject
.
This is how far the unit can account an object from its position.
ObjectCombatReach(--[[(1)]]objectReference) : reach | false
- See Object Reference for more information on possible values.
Example
Get the players current reach.
local reach = ObjectCombatReach('player')
Do something with the reach of all objects.
for i, object in ipairs(Objects()) do local reach = ObjectCombatReach(object) -- do something with reachend