Hey ich habe hier ein einfaches marker-teleport script gebastelt.
Habe es in der Meta eingetragen:
Und hier das Script:
Lua
NoobSpawnEingang = createMarker ( 1489.7998046875, -1895.099609375, 22.200000762939, "corona", 1, 0, 0, 255, 255, getRootElement())
function teleportIn(thePlayer)
if getElementType ( thePlayer ) == "player" then
setElementPosition ( thePlayer, 1488.900390625, -1881.7001953125, 13.5)
end
end
addEventHandler("onMarkerHit", NoobSpawnEingang, teleportIn)
NoobSpawnAusgang = ( 1488.900390625, -1881.7001953125, 13.5, "corona", 1, 0, 0, 255, 255, getRootElement())
function teleportOut(thePlayer)
if getElementType ( thePlayer ) =="player" then
setElementPosition ( thePlayer, 1489.7998046875, -1895.099609375, 22.200000762939)
end
end
addEventHandler("onMarkerHit", NoobSpawnAusgang, teleportOut)
Alles anzeigen
Es kommen KEINE Errors, der Marker wird nicht erstellt und es passiert einfach nichts.
Kann mir da jemand helfen ?