Habe das mal eingegeben.
Lua
theGate = createObject(980,0,0,5,0,0,24)
local downornot = false
function moveGate(player)
x,y,z = getElementPosition(player)
x1,y1,z1 = getElementPosition(theGate)
if getDistanceBetweenPoints3D(x1,y1,z1,x,y,z) < 8 then
if downornot == false then
moveObject (theGate, 3000, -10,-10,0,0,0,0)
downornot = true
else
moveObject (theGate, 3000, 5,5,0,0,0,0)
downornot = false
end
end
end
addCommandHandler("g",moveGate)
Alles anzeigen
Das "Gate" geht schräg zur Seite Runter.
ich bekomme es irgend wie nicht hin es nach Links und Rechts wegbewegen zu lassen.
Das wäre sehr Nice wenn ich das noch hin bekommen würde.
Sent from my iPhone using Tapatalk