How to reset a parameter after deleting an item
I thought that when you delete an item, the "radius" effect will disappear, but it will remain
<ItemContainer capacity="1" slotsperrow="1" canbeselected="true" hideitems="true" msg="ItemMsgInteractSelect">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel"/>
<Containable items="DVE">
<StatusEffect type="OnContaining" targettype="This" range="200.0" setvalue="true" disabledeltatime="True" />
</Containable>
</ItemContainer>
Re: How to reset a parameter after deleting an item
#2I solved the problem, it is necessary to create the status of the state restoration on the main subject
And in the inventory, make another state and correctly indicate the time delta disabledeltatime="False"
Code: Select all
<LightComponent lightcolor="1.0,1.0,1.0,0.5" range="800.0" powerconsumption="1" >
<LightTexture texture="Content/Lights/pointlight_bounce.png" origin="0.5,0.5" />
<sprite texture="Mods/add/Items/Tex/lamp.png" sourcerect="33,0,31,37" alpha="1.0" />
[color=#FF0000] <StatusEffect type="OnActive" targettype="This" range="800.0" setvalue="true" disabledeltatime="True" />[/color]
<StatusEffect type="OnActive" targettype="Contained" Condition="-0.01" disabledeltatime="false">
<RequiredItem items="batterycell" type="Contained" />
</StatusEffect>
</LightComponent>
And in the inventory, make another state and correctly indicate the time delta disabledeltatime="False"
Code: Select all
<ItemContainer capacity="1" slotsperrow="1" canbeselected="true" hideitems="true" msg="ItemMsgInteractSelect">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel"/>
<Containable items="DVE">
<StatusEffect type="OnContaining" targettype="This" range="200.0" setvalue="true"disabledeltatime="False"/>
</Containable>
</ItemContainer>[code]