FiniteUses

This component limits the lifespan of the prefab.

Component FiniteUses Fields

TypeNameDescription
numbertotaldeclares the 100-%-mark
numbercurrentcurrent usage
functiononfinishedFires when the item is at 0. Args: inst

Component FiniteUses Methods

NameParameterReturnsDescription
UsenumnilReduce the remaining usage.
SetConsumptionact, usesnilYou can set the wear every action has on the tool.

Component FiniteUses Events

NameDataFires in/when...
percentusedchangepercent (current condition)SetUses

Example