Guten Tag werte Mitglieder,
soeben habe ich ein Gate gescriptet, jedoch erstellen sich keine Tore. Leider bin ich recht unerfahren in Sachen Scripten, daher weiß ich auch nicht wie ich das ganze beheben kann.
Die Funktionen nannte ich einfach so "schlicht" da es mehr oder weniger für den Privaten Zwecke ist. (Es kommen keine ERRORS in der Konsole)
Code: gate.lua
function gates ()
local gate1 = createObject ( 3294, 1700.099609375, -1144.7998046875, 25.89999961853, 0, 0, 240 )
local gate2 = createObject ( 3294, 1710.599609375, -1144.599609375, 25.89999961853, 0, 0, 240 )
local gate3 = createObject ( 3294, 1721.2998046875, -1144.5, 25.89999961853, 0, 0, 240 )
local gate4= createObject ( 3294, 1731.900390625, -1144.7001953125, 25.89999961853, 0, 0, 240 )
local gate5 = createObject ( 3294, 1741.900390625, -1144.400390625, 25.89999961853, 0, 0, 240 )
addCommandHandler ("gates", gates)
end
function opengate ( player )
moveObject ( gate1, 10000, 1710.599609375, -1144.8000488281, 20, 0, 0, 240 )
moveObject ( gate2, 10000, 1710.599609375, -1144.599609375, 25.89999961853, 0, 0, 240 )
moveObject ( gate3, 10000, 1721.3000488281, -1144.5, 20, 0, 0, 240 )
moveObject ( gate4, 10000, 1731.9000244141, -1144.6999511719, 20, 0, 0, 240 )
moveObject ( gate5, 10000, 1741.9000244141, -1144.4000244141, 20.10000038147, 0, 0, 240 )
end
addCommandHandler ("firegateopen", opengate)
function closegate ( player )
moveObject ( gate1, 10000, 1700.099609375, -1144.7998046875, 25.89999961853, 0, 0, 240 )
moveObject ( gate2, 10000, 1710.599609375, -1144.599609375, 25.89999961853, 0, 0, 240 )
moveObject ( gate3, 10000, 1721.2998046875, -1144.5, 25.89999961853, 0, 0, 240 )
moveObject ( gate4, 10000, 1731.900390625, -1144.7001953125, 25.89999961853, 0, 0, 240 )
moveObject ( gate5, 10000, 1741.900390625, -1144.400390625, 25.89999961853, 0, 0, 240 )
end
addCommandHandler ("firegateopen", opengate)
Alles anzeigen