Component:NumericUserOverrideGather

From Resonite Wiki
Component image 
Numeric User Override Gather`1 component as seen in the Scene Inspector

The NumericOverrideGather component acts the same as a Component:ValueUserOverride`1 with the key difference being it can get the average, minimum, maximum, and sum of all the values users picked that are still in the session.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Default T The default value to drive Target with on the user's local machine if they don't have an override in the list of _overrides.
CreateOverrideOnWrite Bool Whether changes to Target creates a new override or updates the overrides value for that user.
PersistentOverrides Bool Whether the _overrides list contents are saved when this component is saved.
_overrides unordered list of Override<T> A list of overrides for different users.
Target field drive of T The field to drive with different values for each user's local machine using the _overrides list.
Min raw output of T The minimum value of all the _overrides for currently in session users. If a user doesnt have an entry, they are considered to have an entry of Default.
Max raw output of T The maximum value of all the _overrides for currently in session users. If a user doesnt have an entry, they are considered to have an entry of Default.
Sum raw output of T The value for if of all the _overrides were added together for currently in session users. If a user doesnt have an entry, they are considered to have an entry of Default.
Average raw output of T The average value of all the _overrides for currently in session users. If a user doesnt have an entry, they are considered to have an entry of Default.
ExcludeHeadless Bool

Usage

Can be used to check if all users are using the same setting (like saying they're ready for a game round to start) or check the average of what people say the number of jellybeans in a jar is (so that someone can guess the average and get the closest to the answer)

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also