The search keyword must be a single word (no spaces).

Function SetUnitFacingToFaceLocTimed

Line
5039
Location
blizzard.j
Constant?
no
Type
function
Arguments
unit whichUnit, location target, real duration
Returns
nothing
5039
function SetUnitFacingToFaceLocTimed takes unit whichUnit, location target, real duration returns nothing
5040
    local location unitLoc = GetUnitLoc(whichUnit)
5041
5042
    call SetUnitFacingTimed(whichUnit, AngleBetweenPoints(unitLoc, target), duration)
5043
    call RemoveLocation(unitLoc)
5044
endfunction