Fuel

This component makes your prefab fuel for fueled prefabs.

Component Fuel Fields

TypeNameDescription
integerfuelvalueThe amount to increase components.fueled.currentfuel by when this fuel is taken.
functionontakenThe function to run when fuel is accepted by a fueled prefab. Args: inst, taker
stringfueltypeThe fueltype of the prefab. The fueled prefab will only accept certain fueltypes, so make sure this is one of them.

Component Fuel Methods

NameParameterReturnsDescription
SetOnTakenFntakernilWhat function to be run when the fuel is accepted by a fueled prefab.

Component Fuel Events

NameDataFires in/when...
fueltakentakerTaken (before ontaken)

Example