Jass:TerrainDeformationRippleBJ – Mappedia

Jass:TerrainDeformationRippleBJ

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: TerrainDeformationRippleBJ
Parameter: real
boolean
location
real
real
real
real
real
Rückgabewert: terraindeformation
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function TerrainDeformationRippleBJ takes real duration, boolean limitNeg, location where, real startRadius, real endRadius, real depth, real wavePeriod, real waveWidth returns terraindeformation
    local real spaceWave
    local real timeWave
    local real radiusRatio

    if (endRadius <= 0 or waveWidth <= 0 or wavePeriod <= 0) then
        return null
    endif

    set timeWave = 2.0 * duration / wavePeriod
    set spaceWave = 2.0 * endRadius / waveWidth
    set radiusRatio = startRadius / endRadius

    set bj_lastCreatedTerrainDeformation = TerrainDeformRipple(GetLocationX(where), GetLocationY(where), endRadius, depth, R2I(duration * 1000), 1, spaceWave, timeWave, radiusRatio, limitNeg)
    return bj_lastCreatedTerrainDeformation
endfunction

Parameter

Typ Name Beschreibung
real duration
boolean limitNeg
location where
real startRadius
real endRadius
real depth
real wavePeriod
real waveWidth
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge