[1.1.101] Rail signal cannot be rotated by script
Posted: Sun Jan 21, 2024 3:21 pm
Changing a rail signal's direction from script does not work.
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