[1.1.101] Rail signal cannot be rotated by script

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
SupplyDepoo
Filter Inserter
Filter Inserter
Posts: 306
Joined: Sat Oct 29, 2016 8:42 pm
Contact:

[1.1.101] Rail signal cannot be rotated by script

Post 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
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3518
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post by boskid »

Thanks for the report however that is a modding interface request. Rail signals never supported rotate by script.
Post Reply

Return to “Modding interface requests”