addHook("MapLoad", function()
// For every thing (not object) in the map
for mapthing in mapthings.iterate do
// Check that the thing's type is 300 (this example is for the default ring, change 300 to your thing type)
// Also check that the thing has the Ambush flag set
if mapthing.type == 300 and (mapthing.options & MTF_AMBUSH) then
// If it is...
local m = mapthing.mobj
P_TeleportMove(m.x, m.y, m.z+(48*FRACUNIT))
// It can be anything else other than 48, try experimenting
end
end
end)