Page 1 of 1

[1.1.101] Rail signal cannot be rotated by script

Posted: Sun Jan 21, 2024 3:21 pm
by SupplyDepoo
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

Re: [1.1.101] Rail signal cannot be rotated by script

Posted: Mon Jan 22, 2024 8:30 am
by boskid
Thanks for the report however that is a modding interface request. Rail signals never supported rotate by script.