Ich habe folgendes Problem wenn ich diesen Script LUA Code benutze für MTA Gate's dreckt sich das TOR lol
Ich hoffe ihr könnt mir Helfen bei dem Problem..?! Eigendlich ging es immer jetzt aufeinmal nicht mehr ...
theGate = createObject( 980, -2645.6999511719, 334.89999389648, 6, 0, 0, 88)
local downornot = false
function moveGate(player)
x,y,z = getElementPosition(player)
x1,y1,z1 = getElementPosition(theGate)
if getDistanceBetweenPoints3D(x1,y1,z1,x,y,z) < 17 then
if downornot == false then
moveObject (theGate, 3000, -2645.6999511719, 334.89999389648, 6, 0, 0, 88)
downornot = true
else
moveObject (theGate, 3000, -2645.6999511719, 334.89999389648, 0.5, 0, 0, 88)
downornot = false
end
end
end
addCommandHandler("event",moveGate)
Dankeschön
MfG
RippFaban