• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Question: Upgrade Gives Item A16.4

Hi,

I know how to give item on destroy. Is it possible give player an item on specific block upgrades?

Would adding this to an item work:

<drop event="UpgradeBlock" item="wood" count="1" />

 
Last edited by a moderator:
Sorry, i need it to be given on upgrade by the players action of upgrading it, I've left an example of what i think may work I may be dead wrong and there may be another way:

<block id="2032" name="exampleStage1">

<property name="CustomIcon" value="controlPanelTop06" />

<property name="Material" value="metal" />

<property name="Shape" value="Ext3dModel" />

<property name="Mesh" value="models" />

<property name="Model" value="Industrial/control_panel_top_06" param1="main_mesh" />

<property name="Place" value="TowardsPlacerInverted" />

<drop event="Destroy" count="1" />

<drop event="UpgradeBlock" item="wood" count="1" />

<property class="UpgradeBlock">

<property name="ToBlock" value="exampleStage2"/>

<property name="Item" value="gasCan"/>

<property name="ItemCount" value="250"/>

<property name="UpgradeHitCount" value="1"/>

</block>

<block id="2033" name="exampleStage2">

<property name="CustomIcon" value="controlPanelTop06" />

<property name="Material" value="metal" />

<property name="Shape" value="Ext3dModel" />

<property name="Mesh" value="models" />

<property name="Model" value="Industrial/control_panel_top_06" param1="main_mesh" />

<property name="Place" value="TowardsPlacerInverted" />

<drop event="Destroy" count="1" />

</block>

 
Last edited by a moderator:
Back
Top