Jump to content

How to toggle a POI light on?


METALmurderer

Recommended Posts

The server admin where I play usually makes a /spawn area around the day 250 mark, but players with lower end machines have lag issues w/ excessive amounts of candles and we don't want to have to keep refueling a generator...

 

We're trying to use the POI lights that spawn in random houses but when he spawns them in as items and places them, the preview shows them lit up and what they will illuminate but the light is off when actually placed.

 

There is no option to interact with them in the world since they are not player obtainable blocks, just pre existing in POIs (some on, some off)

 

If it matters, the light is "flashlightDecor"

 

 

(Copy pasted block and its parent from A17E b197 blocks.xml)

 

<block name="porchLight01">
<property name="Class" value="Light"/>
<property name="CreativeMode" value="Dev"/>
<property name="DescriptionKey" value="lightPOIGroupDesc"/>
<property name="Material" value="Mmetal_thin"/>
<property name="StabilitySupport" value="false"/> <!-- build restriction -->
<property name="Shape" value="ModelEntity"/>
<property name="Light" value="0.5"/>
<property name="Collide" value="melee,bullet,arrow,rocket"/>
<property name="Model" value="Entities/Lighting/porchLight01Prefab"/> <property name="HandleFace" value="West"/>
<property name="ImposterDontBlock" value="true"/>
<property class="RepairItems"> <property name="resourceForgedIron" value="1"/> <property name="resourceElectricParts" value="3"/> </property>
<drop event="Harvest" name="terrStone" count="0" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceElectricParts" count="1,4" tag="salvageHarvest"/> <!-- HV: mounted lamp -->
<drop event="Destroy" name="resourceScrapIron" count="5" prob="1"/>
<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>
<property name="TakeDelay" value="-1"/>
<property name="Group" value="Science"/>
<property name="EconomicValue" value="76"/>
<property name="FilterTags" value="fdecor,felectrical"/>
<property name="SortOrder1" value="70a0"/>
</block>

<block name="flashlightDecor">
<property name="Extends" value="porchLight01"/>
<property name="Model" value="Entities/Lighting/flashlightDecorPrefab"/> <property name="HandleFace" value="Bottom"/>
</block>

 

Is there a command or some other way to toggle this light to be On, either before or after it is placed?

Link to comment
Share on other sites

  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...