Wenn Ich Das Tor Mit /ptor Aufmachen Will Schiebt Es Sich Von Der Seite auf den Boden Raus
Ich Wollte Eigentlich Das Es Normal Hoch und Runter Geht .
[Video]
Lua
Gate = createObject ( 971, 1547 , -1627.599609375, 16, 0, 0,270)
GateStatus = "zu"
function MoveGate (player)
local x, y, z = getElementPosition(player)
if (getDistanceBetweenPoints3D(1547, -1627.599609375, 16, x, y,z)) < 50 then
if (GateStatus == "zu") then
moveObject( Gate, 3000, 1547 , -1600.599609375, 8.3000001907349, 0, 0,200)
GateStatus = "auf"
elseif (GateStatus == "auf") then
moveObject( Gate, 3000, 1547 , -1627.599609375, 16, 0, 0,270)
GateStatus = "zu"
end
else
outputChatBox("Du Bist zu weit entfernt", player,255, 0,0)
end
end
addCommandHandler("ptor", MoveGate)
Alles anzeigen
Was Habe Ich Falsch Gemacht ?
wäre nett wenn ihr mir helft.
Liebe Grüße Mrobelix333