GetElevatorHeight

Parameters
ddestructable
comment
patch

1.07

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
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