player:broadcast("The description of the displacement tool must contain (only) the GUID for a scripting zone that contains the play field.", Color.RED)
return
end
local zone = getObjectFromGUID(self:getDescription())
local offset = OFFSETS[direction]
if not zone then
player:broadcast("The description of the displacement tool either contains text that is not a GUID or contains a GUID for a scripting zone that does not exist.", Color.RED)
return
end
local adjustment = Vector(0, 0, 0)
adjustment[offset.axis] = offset.offset
---@param object TTSObject
for _, object in ipairs(zone:getObjects()) do
if not (excluded[object:getGUID():lower()] or object:hasTag("displacement_excluded")) then