Code: Select all
-- Changing position works, even if it would make
-- the rail signal invalid/disconnected with any rail.
signal.teleport(3)
-- Changing rotation DOESN'T work, even if it would result
-- in a correctly placed signal (after teleporting to the
-- opposite side of the rail for example).
signal.direction = (signal.direction + 4) % 8