Modding/Components/DistanceThreshold
< Modding | Components(Redirected from DistanceThreshold (modding))
Jump to navigation
Jump to search
Code location (what's this?):
{{{1}}}
What it's for
A part component that toggles on and off and provides a value depending on the distance provided by another component relative to a set distance.
Parameters
There are currently 7 available parameters specific to DistanceThreshold.
- Mandatory :
- ThresholdDistance (float) - buffable
- GetDistanceFrom (component) : The distance above should be counted between (the part containing) this component, and another component's location.
- Optional :
- UseCommandDistance (true/false)
- InvertToggle (true/false)
- ValueFalloffFromThreshold (float)
- ValueFalloffFromThresholdExponent (float) : defaults to 1.
- InvertValue (true/false)