local gate = createObject(980,1810.6999511719, -1891, 15, 0, 0, 90)
local marker = createMarker(1810.6999511719, -1891, 15, "cylinder", 10, 255, 255, 255, 0)
function moveGate(psource)
local Deadusergroup = getAccountName(getPlayerAccount(psource))
if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("Dead")) then
moveObject(gate, 980, 1810.6999511719, -1891, 9.6000003814697)
setTimer(moveBack, 5000, 1) --
end
end
addEventHandler("onMarkerHit", marker, moveGate)
function moveBack()
moveObject(gate, 980, 1810.6999511719, -1891, 15)
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onStartup)
Tested and functional!
By [N]inja