Skip to content
User Avatar
#4000
Auto-translated

BlueHeavenHero, I wrote such a function for my map:

function WhereAmI(obj)
local x, y, z = GetObjectPosition(obj);
if z == 0 then
return 0
elseif z == 1 then
return 1
end
end

Usage:

    if heroName == "Duncan" then
if WhereAmI( heroName ) == 0 then
DuncanInGround = 1
elseif WhereAmI( heroName ) == 1 then
DuncanInGround = 0
end
end

Всякое/карты:

Добавление недостающей музыки гномам