GetElevatorHeight

Parameters
d destructable
comment
patch

1.07

return type
integer
Source code
function GetElevatorHeight takes destructable d returns integer
    local integer height

    set height = 1 + R2I(GetDestructableOccluderHeight(d) / bj_CLIFFHEIGHT)
    if (height < 1) or (height > 3) then
        set height = 1
    endif
    return height
endfunction
Source
Blizzard.j
wc3modding.com
GetElevatorHeight