ValueTween

From Cosmoteer Wiki
< Modding‎ | Components‎ | Components: Other components(Redirected from ValueTween)
Modding/Components/Other components/ValueTween
Jump to navigation Jump to search


Code location (what's this?): Cosmoteer.Ships.Parts.Logic.PartValueTween

A part sub-component that tweens from one value to the next based off on off state.

This component helps with ramping up the fire rate of the Chaingun. You can use it for similar purposes.


Parameters

There are currently 6 available parameters specific to ValueTween.


  • Mandatory :
    • IsOnToggle (true/false)
    • StartingValue (float)


  • Optional :
    • OffValue (float)
    • OnValue (float) : defaults to 1.
    • StartingValue (float)
    • OnTweenDuration (float)