Wenn man den befehl eingibt kommt zwar die chatbox aber es bewegt sich nichts
Lua
local easing = "OutBounce"
local time = 5000
local Fahrstuhl_Boden_Links_Oben = createObject (3115, 6010, 5990, 1, 0, 0, 0)
local Fahrstuhl_Boden_Links_Unten = createObject (3115, 6010, 6010, 1, 0, 0, 180)
local Fahrstuhl_Boden_Rechts_Oben = createObject (3115, 5990, 5990, 1, 0, 0, 0)
local Fahrstuhl_Boden_Rechts_Unten = createObject (3115, 5990, 6010, 1, 0, 0, 180)
function Fahrstuhl_hoch(getLocalPlayer)
local playerx, playery = getElementPosition(getLocalPlayer)
if getDistanceBetweenPoints2D(6000, -6000, playerx, playery) <30 then
moveObject (Fahrstuhl_Boden_Rechts_Oben, time, 5990, 5990, 25, 0, 0, 0,easing)
moveObject (Fahrstuhl_Boden_Rechts_Unten, time, 5990, 6010, 25, 0, 0, 180,easing)
outputChatBox("TADAAA", thePlayer, 0, 255, 0)
end
end
addCommandHandler("fahrstuhl", Fahrstuhl_hoch, FahrstuhlmoveBack)
function fahrstuhlmoveBack()
moveObject (Fahrstuhl_Boden_Rechts_Oben, time, 5990, 5990, 1, 0, 0, 0,easing)
moveObject (Fahrstuhl_Boden_Rechts_Unten, time, 5990, 6010, 1, 0, 0, 180,easing)
end
Alles anzeigen