Type:ActiveUserHandling: Difference between revisions

From Resonite Wiki
Created stub for Type:ActiveUserHandling
 
add info
 
Line 1: Line 1:
{{stub}}
Active User Handling is used to handle the intractability of components when they have an active user. This is useful if the component is under an avatar where you want the wearer of the avatar (regardless of who it is) to be the user of an item, or to exclude the active user from using the item/avatar if they are using it.
 
For example, you would want to be able to be the only person to zip your mouth closed with a zipper slider so you get silenced, but you wouldn't want to grab your own limbs off if you're a synth with detachable parts, to name a couple use cases.


{{Table EnumValues
{{Table EnumValues
|Disabled|0|
|Disabled|0| Ignores if it has an active user or not
|OnlyActiveUser|1|
|OnlyActiveUser|1| Only the active user of this component can interact, and if there is no active user nobody can interact with this component.
|ActiveUserWhenPresent|2|
|ActiveUserWhenPresent|2| Only the active user of this component can interact, and if there is no active user anyone can interact with this component.
|ExcludeActiveUser|3|
|ExcludeActiveUser|3| Everyone can interact with this component except the active user of this component.
}}
}}


[[Category:Type]]
[[Category:Type]]
[[Category:Enums]]
[[Category:Enums]]

Latest revision as of 17:02, 24 December 2024

Active User Handling is used to handle the intractability of components when they have an active user. This is useful if the component is under an avatar where you want the wearer of the avatar (regardless of who it is) to be the user of an item, or to exclude the active user from using the item/avatar if they are using it.

For example, you would want to be able to be the only person to zip your mouth closed with a zipper slider so you get silenced, but you wouldn't want to grab your own limbs off if you're a synth with detachable parts, to name a couple use cases.

Values
Name Value Description
Disabled 0 Ignores if it has an active user or not
OnlyActiveUser 1 Only the active user of this component can interact, and if there is no active user nobody can interact with this component.
ActiveUserWhenPresent 2 Only the active user of this component can interact, and if there is no active user anyone can interact with this component.
ExcludeActiveUser 3 Everyone can interact with this component except the active user of this component.