Character and locomotion events reference
These contracts describe the released UCC 3.2.0 and Opsive Shared runtime. Match the target object, event name, parameter types and parameter order to the publisher in your installed version.
Character and locomotion events
Character lifecycle and movement
| Event | Parameters | Runtime use |
|---|---|---|
OnCharacterAbilityActive |
Ability, bool |
A non-item ability started or stopped. |
OnCharacterActivate |
bool |
The character became active or inactive. |
OnCharacterAttachCamera |
CameraController |
A camera controller was attached to the character. |
OnCharacterAttachLookSource |
ILookSource |
The character’s look source changed. |
OnCharacterChangeMovementType |
MovementType, bool |
A movement type was deactivated or activated. The Boolean is the active state. |
OnCharacterChangeMovingPlatforms |
Transform |
The active moving platform changed; the transform can be null. |
OnCharacterChangePerspectives |
bool |
The character changed to first person (true) or third person (false). |
OnCharacterChangeTimeScale |
float |
The character time scale changed. |
OnCharacterDestroyed |
() |
Consumer contract used when character-owned helper objects should be destroyed. |
OnCharacterForceIndependentLook |
bool |
An ability requested or released independent look control. |
OnCharacterGrounded |
bool |
The grounded state changed. |
OnCharacterImmediateTransformChange |
bool |
Position or rotation changed immediately; the Boolean requests an Animator snap. |
OnCharacterIndependentFade |
bool, bool |
Another system took or released control of character fading, with the requested revert behavior. |
OnCharacterItemAbilityActive |
ItemAbility, bool |
An item ability started or stopped. |
OnCharacterLand |
float |
The character landed after falling the supplied height. |
OnCharacterLean |
float, float, float |
Lean distance, tilt, and item-tilt multiplier changed. |
OnCharacterMoving |
bool |
The character started or stopped moving. |
OnCharacterSnapAnimator |
bool |
Consumers should snap Animator state; the Boolean controls whether OnAnimatorSnapped is then executed. |
OnCharacterSwitchModels |
GameObject |
ModelManager changed the active character model. |
OnCharacterUpdateAbilityParameters |
bool |
Ability Animator parameters should update; the Boolean requests an immediate update. |
OnCharacterUpdateItemAbilityParameters |
bool |
Item-ability Animator parameters should update; the Boolean forces changed values to be applied. |
OnEnableGameplayInput |
bool |
Character gameplay input was enabled or disabled. |
OnHeightChangeAdjustHeight |
float |
The Height Change ability applied a collider-height adjustment. |
OnStoredInputAbilityResetStoredInputs |
() |
Stored movement input should be cleared. |
Input and movement-type callbacks
| Event | Parameters | Runtime use |
|---|---|---|
OnAssistAimSwitchInput |
float |
Axis input used to switch Assist Aim targets. |
OnAssistAimUpdateBreakForce |
float |
Axis input used to update Assist Aim break force. |
OnInputControllerConnected |
bool |
A controller connected or disconnected. |
OnJumpAbilityAirborneJump |
() |
Button-down input requests an airborne jump. |
OnJumpAbilityReleaseHold |
() |
Button-up input releases a held jump. |
OnLeanInputUpdate |
float |
Axis input updates the active Lean ability. |
OnRPGMovementTypeAutoMove |
() |
Input toggles RPG automatic movement. |
OnRPGMovementTypeStartRotate |
() |
Input begins RPG rotation. |
OnRPGMovementTypeStopRotate |
() |
Input ends RPG rotation. |
OnRPGMovementTypeTurn |
float |
Axis input supplies the RPG turn amount. |
OnUnityInputSystemTypeChanged |
bool |
Unity Input System on-screen-control mode changed. |
OnUnityInputTypeChanged |
UnityInput, bool |
Legacy UnityInput virtual-input mode changed. |
Ability animation callbacks
These zero-parameter names are received through the character Animator Monitor. The animation clip must contain the corresponding animation event when an ability is configured to wait for it.
| Event | Parameters | Runtime use |
|---|---|---|
OnAnimatorDamageVisualizationComplete |
() |
Damage Visualization animation completed. |
OnAnimatorDropItem |
() |
The Drop ability reached its drop point. |
OnAnimatorEnteredVehicle |
() |
The vehicle-entry animation reached its completion point. |
OnAnimatorExitedVehicle |
() |
The vehicle-exit animation reached its completion point. |
OnAnimatorFallComplete |
() |
The Fall ability’s landing animation completed. |
OnAnimatorGenericAbilityComplete |
() |
A Generic ability animation completed. |
OnAnimatorImpactKnockBackComplete |
() |
Impact Knock Back animation completed. |
OnAnimatorInteract |
() |
The Interact ability reached its interaction point. |
OnAnimatorInteractComplete |
() |
The Interact ability animation completed. |
OnAnimatorJump |
() |
The Jump ability reached its force-application point. |
OnAnimatorPickup |
() |
The Pickup ability reached its pickup point. |
OnAnimatorPickupComplete |
() |
The Pickup ability animation completed. |
OnAnimatorQuickTurnComplete |
() |
Quick Turn animation completed. |
OnAnimatorReviveComplete |
() |
Revive animation completed. |
OnAnimatorRideDismount |
() |
The Ride ability reached its dismount point. |
OnAnimatorRideMount |
() |
The Ride ability reached its mount point. |
OnAnimatorRideMountComplete |
() |
The Ride mount animation completed. |
OnAnimatorSnapped |
() |
The Animator Monitor finished snapping. |
OnAnimatorStartMovementComplete |
() |
Quick Start animation completed. |
OnAnimatorStopMovementComplete |
() |
Quick Stop animation completed. |
OnAnimatorWillSnap |
() |
The Animator Monitor is about to snap. |
Item animation callbacks
An AnimationSlotEventTrigger registers both the base name and a zero-parameter name ending in Slot{slotID}. For example, slot 1 can invoke either OnAnimatorItemUse or OnAnimatorItemUseSlot1. Rows shown as "base or slot" use that behavior; the remaining rows use only the displayed name.
| Event | Parameters | Runtime use |
|---|---|---|
OnAnimatorActivateThrowableObject |
() |
A throwable module activates its throwable object. |
OnAnimatorActiveAttackStart or OnAnimatorActiveAttackStartSlot{slotID} |
() |
A melee attack enters its active hit period. |
OnAnimatorAllowChainAttack or OnAnimatorAllowChainAttackSlot{slotID} |
() |
A melee attack allows the next chained attack. |
OnAnimatorEndCast or OnAnimatorEndCastSlot{slotID} |
() |
A magic caster reaches its end-cast point. |
OnAnimatorItemDepleteChargeComplete or OnAnimatorItemDepleteChargeCompleteSlot{slotID} |
() |
An item trigger finishes depleting its charge. |
OnAnimatorItemEquip or OnAnimatorItemEquipSlot{slotID} |
() |
A Character Item reaches its equip point. |
OnAnimatorItemEquipComplete or OnAnimatorItemEquipCompleteSlot{slotID} |
() |
A Character Item’s equip animation completes. |
OnAnimatorItemImpactComplete |
() |
An item-impact animation completes. |
OnAnimatorItemImpactCompleteSlot{slotID} |
() |
A Block item-impact animation completes for the appended slot ID. |
OnAnimatorItemMaxChargeComplete or OnAnimatorItemMaxChargeCompleteSlot{slotID} |
() |
An item trigger reaches maximum charge. |
OnAnimatorItemMinChargeComplete or OnAnimatorItemMinChargeCompleteSlot{slotID} |
() |
An item trigger reaches minimum charge. |
OnAnimatorItemReactivateClip |
() |
A shootable reloader reactivates its clip. |
OnAnimatorItemReload or OnAnimatorItemReloadSlot{slotID} |
() |
A shootable reloader reaches its reload point. |
OnAnimatorItemReloadAttachClip |
() |
A shootable reloader attaches its clip. |
OnAnimatorItemReloadAttachProjectile |
() |
A projectile module attaches the reload projectile. |
OnAnimatorItemReloadComplete or OnAnimatorItemReloadCompleteSlot{slotID} |
() |
A shootable reload animation completes. |
OnAnimatorItemReloadDetachClip |
() |
A shootable reloader detaches its clip. |
OnAnimatorItemReloadDropClip |
() |
A shootable reloader drops its detached clip. |
OnAnimatorItemReloadShowProjectile |
() |
A projectile module shows its reload projectile. |
OnAnimatorItemRemovePin |
() |
A throwable module removes its pin. |
OnAnimatorItemUnequip or OnAnimatorItemUnequipSlot{slotID} |
() |
A Character Item reaches its unequip point. |
OnAnimatorItemUnequipComplete or OnAnimatorItemUnequipCompleteSlot{slotID} |
() |
A Character Item’s unequip animation completes. |
OnAnimatorItemUse or OnAnimatorItemUseSlot{slotID} |
() |
A usable item reaches its use point. |
OnAnimatorItemUseComplete or OnAnimatorItemUseCompleteSlot{slotID} |
() |
A usable item’s animation completes. |
OnAnimatorMeleeAttackComplete or OnAnimatorMeleeAttackCompleteSlot{slotID} |
() |
A melee attack animation completes. |
OnAnimatorReequipThrowableItem or OnAnimatorReequipThrowableItemSlot{slotID} |
() |
A throwable item reaches its re-equip point. |
OnAnimatorRepeatCast or OnAnimatorRepeatCastSlot{slotID} |
() |
A magic caster reaches its repeat-cast point. |
OnAnimatorStartCast or OnAnimatorStartCastSlot{slotID} |
() |
A magic caster reaches its start-cast point. |
OnAnimatorStartVisibleProjectile |
() |
A projectile module begins showing its visible projectile. |
OnAnimatorStopTrail |
() |
A melee extra module stops its trail. |
State System
| Event | Parameters | Runtime use |
|---|---|---|
OnStateChange |
GameObject, string, bool |
Global event sent when a state changes, but only when the scene StateManager has Send State Change Event enabled. |
OnStateChange is global. Register it without a target object; do not register it on the changed GameObject.