Hallo
Ich hab ein Problem!
Ich hab ein Gate Script und wenn ich das Einfüge kann ich es 1x runter und 1x rauf tun. Danach geht nichts mehr was ist das Problem !!! Das ist bei allen Gates mit diesem Script !!
Lua
theGate = createObject(980, 321.39999389648, -1188.1999511719, 77.199996948242, 0, 0, 218)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, 321.39999389648, -1188.1999511719, 71.900001525879, 0, 0, 0) downornot = true else moveObject (theGate, 3000, 321.39999389648, -1188.1999511719, 77.199996948242, 0, 0, 0). downornot = false end end end addCommandHandler("gate",moveGate)