• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Wired Streetlights

Grue

Refugee
I would like to be able to run electricity to a prefab streetlight at a POI so I can turn it on, does anyone have a mod for that?

 
Probably could be done unless you also wanted to provide a power source.
Yeah I have a power source, there is just no place to connect the wire on the streetlight to get it to work.

https://steamcommunity.com/sharedfiles/filedetails/?id=1679643475

I am just guessing here, but would adding something like this to the streetlight in Blocks.xml do the trick?

Code:
<property name="Class" value="PoweredLight"/>
<property name="RequiredPower" value="1"/>
<property name="RuntimeSwitch" value="true"/>
<property name="Light" value="1"/>
 
Last edited by a moderator:
This is what I ended up with as a modlet, but it is still not very bright.

Code:
<set xpath="/blocks/block[@name='streetLight01']/property[@name='Class']/@value">PoweredLight</set>
<append xpath="/blocks/block[@name='streetLight01']">
	<property name="RequiredPower" value="5"/>
	<property name="Light" value="0.5"/>
</append>
 
Last edited by a moderator:
Edit: Seems to be working again, code above updated.

 
Last edited by a moderator:
Back
Top