Skip to content

CVR Advanced Avatar Settings Trigger

Modifies advanced avatar settings parameter values when a CVR Pointer enters the trigger area. The class is a subclass of CVRTrigger and registers itself with the contact system (TriggerToContact.Create) on Start. Size and placement are configured below; the trigger moves with its parented armature bone or GameObject. If another collider (Box, Sphere, Mesh, etc.) sits on the same GameObject, that collider becomes the trigger area. Non-convex Mesh Colliders are not supported.

Vector3. Size of the trigger area. Default (0.05, 0.05, 0.05).

Vector3. Offset from the GameObject center. Default (0, 0, 0).

string. Parameter name of the AAS setting to modify.

int. Resolved AAS setting index. Populated by the inspector.

float. Default value used when no task-specific value is configured.

bool. Enables the advanced (pointer-filtered, task-list) mode. When false, a simple single-value override is used.

bool. Default true. Allows this trigger to fire from local pointers.

bool. Default true. Allows this trigger to fire from remote pointers.

bool. Allows particle systems carrying a CVRPointer to activate this trigger. Particles can only fire the Enter tasks.

List<CVRPointer>. Whitelist of specific pointer instances. Other pointers are ignored.

string[]. Whitelist of CVRPointer.type strings.

SampleDirection enum: XPositive, XNegative, YPositive, YNegative, ZPositive, ZNegative. Axis used by SetFromPosition / SetFromDistance stay tasks to map position to value.

List<CVRTriggerTask>. Each entry runs when a pointer enters the trigger. Fields:

  • settingName / settingIndex — target AAS parameter.
  • settingValue — value used by the update method.
  • delay — seconds to wait before the task fires.
  • holdTime — how long the pointer must remain inside before the task fires.
  • updateMethodUpdateMethod enum:
    • Override (default) — replace the parameter value.
    • Add — add settingValue.
    • Subtract — subtract settingValue.
    • Toggle — flip between 0 and settingValue (or 0/1).
    • SetFromPointer — use the pointer’s value field.

List<CVRTriggerTask>. Same shape as enter tasks; fires when the pointer leaves (after the configured delay). holdTime is not used on exit.

List<CVRTriggerTaskStay>. Fire continuously while a pointer is inside. Fields:

  • settingName / settingIndex — target parameter.
  • minValue / maxValue — range bounds (default 0..1).
  • updateMethodUpdateMethod enum:
    • SetFromPosition (default) — map the pointer’s position along sampleDirection to [minValue, maxValue].
    • Add — add maxValue per second, clamped.
    • Subtract — subtract maxValue per second, clamped.
    • SetFromDistance — map distance from the trigger center.
    • SetFromPointer — use the pointer’s value field.

CVR-GameFiles/ABI.CCK.Components/CVRAdvancedAvatarSettingsTrigger.cs, CVR-GameFiles/ABI.CCK.Components/CVRTrigger.cs, CVR-GameFiles/ABI.CCK.Components/CVRTriggerTask.cs, CVR-GameFiles/ABI.CCK.Components/CVRTriggerTaskStay.cs