Jass:SetUnitFacingToFaceLocTimed – Mappedia

Jass:SetUnitFacingToFaceLocTimed

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: SetUnitFacingToFaceLocTimed
Parameter: unit
location
real
Rückgabewert: nothing
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function SetUnitFacingToFaceLocTimed takes unit whichUnit, location target, real duration returns nothing
    local location unitLoc = GetUnitLoc(whichUnit)

    call SetUnitFacingTimed(whichUnit, AngleBetweenPoints(unitLoc, target), duration)
    call RemoveLocation(unitLoc)
endfunction

Parameter

Typ Name Beschreibung
unit whichUnit
location target
real duration
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge