Automated: create new component page |
add info |
||
Line 4: | Line 4: | ||
}} | }} | ||
{{stub}} | {{stub}} | ||
Makes one <code>DriveTarget</code>'s value be set to <code>ValueSource</code> value every game tick. | |||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|ValueSource|'''[[Type:IValue`1|IValue`1]]<T>'''|TypeAdv0=true| | |ValueSource|'''[[Type:IValue`1|IValue`1]]<T>'''|TypeAdv0=true| The value field to get a value from. | ||
|DriveTarget|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true| | |DriveTarget|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true| The value field to set to the value of <code>ValueSource</code>. | ||
}} | }} | ||
Line 14: | Line 15: | ||
== Examples == | == Examples == | ||
This is useful for a lightweight version of [[Component:ValueCopy|Value Copy]] to make one value equal to another, when write back isn't needed. | |||
== See Also == | == See Also == | ||
* [[Component:ValueCopy|Value Copy]] | |||
[[Category:Components:Relations{{#translation:}}|Value Driver`1]] | [[Category:Components:Relations{{#translation:}}|Value Driver`1]] | ||
[[Category:Components{{#translation:}}|Value Driver`1]] | [[Category:Components{{#translation:}}|Value Driver`1]] | ||
[[Category:Generic Components{{#translation:}}|Value Driver`1]] | [[Category:Generic Components{{#translation:}}|Value Driver`1]] | ||
Latest revision as of 15:26, 20 October 2024
Component image
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Makes one DriveTarget
's value be set to ValueSource
value every game tick.
Usage
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. |
ValueSource
|
IValue`1<T> | The value field to get a value from. |
DriveTarget
|
field drive of T | The value field to set to the value of ValueSource .
|
Behavior
Examples
This is useful for a lightweight version of Value Copy to make one value equal to another, when write back isn't needed.