Hey.
Hab versucht ein Name Gate zu öffnen, Eigentlich sollte das doch gehen, (öffnen) Doch es Passiert reinlich gar nix, Wenn ich an der Gate ankomme... Bleibt geschlossn!
Ja natürlich, Großschreibung etc. ist Haargenau!
Kein Error oder sontiges
Lua
-- GATE --
local gate = createObject(980, 2086.6000976563, 2032.0999755859, 12.60000038147, 0, 0, 180)
local colshape = createColCircle(2086.60009764653, 2032.0999755859, 5);
local validPlayer = {
["ByeBye2"] = true,
["TeamGamer"] = true,
["TEAMPLAYER"] = true,
}
addEventHandler("onColShapeHit", colshape, function(h, d)
if h and d then
if(getElementType(h) == "player")then
if(validPlayer[getPlayerName(h)])then
moveObject(gate, 2000, 2075, 2032.0999755859, 12.60000038147 )
end
end
end
end)
addEventHandler("onColShapeLeave", colshape, function(h, d)
if h and d then
if(getElementType(h) == "player")then
if(validPlayer[getPlayerName(h)])then
moveObject( gate, 2000, 2086.6000976563, 2032.0999755859, 12.60000038147 )
end
end
end
end)
-- 2 GATE --
local gate1 = createObject(980, 2087.6999511719,2103.1999511819,12.6, 0, 0, 0)
local colshape1 = createColCircle(2087.6999511719,2103.1999511819, 5);
addEventHandler("onColShapeHit", colshape1, function(h, d)
if h and d then
if(getElementType(h) == "player")then
if(validPlayer[getPlayerName(h)])then
moveObject(gate1, 2000,2076.6, 2103.1999511819,12.6 )
end
end
end
end)
addEventHandler("onColShapeLeave", colshape1, function(h, d)
if h and d then
if(getElementType(h) == "player")then
if(validPlayer[getPlayerName(h)])then
moveObject( gate, 2000, 2087.6999511719,2103.1999511819,12.6 )
end
end
end
end)
Alles anzeigen