Hallo,
ich hab da mal ne frage unzwar hab ich im FBI-Gate script mal etwas geändert.
Es soll sich öffnen wenn man davor steht.
Auf meinem localem Server hat das auch geklappt aber als ich das hochgeladen habe nicht.
Lua
FbiGate1 = createObject ( 971, -2431.8154296875, 497.42578125, 30.50421333313, 0, 0, 23.8 )
FbiGate2 = createObject ( 971, -2439.884765625, 493.8688659668, 30.50421333313, 0, 0, 23.8 )
col = createColSphere (-2431.8154296875, 497.42578125, 30.50421333313, 10)
gatemoving = false
function opengate (player)
if isFBI(player) then
if (gatemoving == false) then
moveObject ( FbiGate1, 3000, -2431.8154296875, 497.42578125, 21, 0, 0, 0 )
moveObject ( FbiGate2, 3000, -2439.884765625, 493.8688659668, 21, 0, 0, 0 )
gatemoving = true
end
end
end
addEventHandler ("onColShapeHit", col, opengate)
function closegate (player)
if isFBI(player) then
if (gatemoving == true) then
moveObject ( FbiGate1, 3000, -2431.8154296875, 497.42578125, 30.50421333313, 0, 0, 0 )
moveObject ( FbiGate2, 3000, -2439.884765625, 493.8688659668, 30.50421333313, 0, 0, 0 )
gatemoving = false
end
end
end
addEventHandler ("onColShapeLeave", col, closegate)
Alles anzeigen
Ich hoffe mir kann einer helfen