Das neue Tor von meiner Mafia base will sich nicht öffnen...
Kann mir einer Sagen was ich daran falsch gemacht habe?
MAFIAGate1 = createObject ( 10184, 2288.0126953125, 622.85626220703, 12.3420753479, 0, 0, 90 )
MAFIAGateMoving = false
MAFIAGateMoved = false
function mv_func ( player )
if isMAFIA(player) or isGatePermitted(player) then
if getDistanceBetweenPoints3D ( 2288.0126953125, 622.85626220703, 7.3420753479, getElementPosition ( player ) ) < 17 then
if MAFIAGateMoving == false then
MAFIAGateMoving = true
if MAFIAGateMoved == false then
moveObject ( MAFIAGate1, 3000, 2288.0126953125, 622.85626220703, 12.3420753479, 0, 0, 90 )
setTimer ( triggerMAFIAGateVarb, 3000, 1 )
MAFIAGateMoved = true
else
moveObject ( MAFIAGate1, 3000, 2288.0126953125, 622.85626220703, 12.3420753479, 0, 0, 90 )
setTimer ( triggerMAFIAGateVarb, 3000, 1 )
MAFIAGateMoved = false
end
end
end
end
end
addCommandHandler ( "mv", mv_func )
function triggerMAFIAGateVarb ()
MAFIAGateMoving = false
end
Mit freundlichen Grüßen,
MOON