Abilities, items, and inventory 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.
Abilities, items, and inventory events
Ability and aiming events
| Event | Parameters | Runtime use |
|---|---|---|
OnAbilityMessageCanStart |
Ability, bool |
An ability’s message-based start permission changed. |
OnAbilityUnequipItemComplete |
CharacterItem, int |
Unequipping a Character Item from a slot completed. |
OnAbilityWillEquipItem |
CharacterItem, int |
An ability is about to equip a Character Item in a slot. |
OnAimAbilityAim |
bool |
The Aim ability’s aiming state changed. |
OnAimAbilityStart |
bool, bool |
Aim started or stopped; the second value identifies an input-driven change. |
OnAimTargetChange |
int, Transform, bool |
An Assist Aim target ID, target transform, or lock state changed. |
OnEquipUnequipItemSetIndexChange |
int |
Equip Unequip changed its item-set index. |
OnEquipUnequipVerifyUnequipItem |
int, int |
Equip Unequip requests verification for an item-set group and slot before completing unequip. |
OnUseAbilityStart |
bool, Use |
A Use ability started or stopped. |
OnUseAbilityUsedItem |
IUsableItem |
The Use ability used an item. |
Inventory and item-set events
| Event | Parameters | Runtime use |
|---|---|---|
OnActiveItemSetChange |
int, ItemSet, ItemSet |
An item-set group changed from its previous set to a new set. |
OnInventoryAddItem |
CharacterItem |
A Character Item was added to the inventory. |
OnInventoryAdjustItemIdentifierAmount |
IItemIdentifier, int, int |
An Item Identifier amount changed from the previous amount to the new amount. |
OnInventoryDestroyItem |
CharacterItem |
A Character Item is being destroyed by the inventory. |
OnInventoryDropItem |
GameObject |
Removing an Item Identifier with dropping enabled produced a drop instance. |
OnInventoryDropItem |
CharacterItem, int, GameObject |
A Character Item drop reports the item, amount, and spawned object. |
OnInventoryEquipItem |
CharacterItem, int |
A Character Item was equipped in a slot. |
OnInventoryLoadDefaultLoadoutComplete |
() |
The inventory finished loading its default loadout. |
OnInventoryPickupItem |
CharacterItem, int, bool, bool |
A Character Item pickup reports amount, immediate-pickup, and force-equip choices. |
OnInventoryPickupItemIdentifier |
IItemIdentifier, int, bool, bool |
An Item Identifier pickup reports amount, immediate-pickup, and force-equip choices. |
OnInventoryRemoveItem |
CharacterItem, int |
A Character Item was removed from a slot. |
OnInventoryRespawned |
() |
Inventory respawn processing completed. |
OnInventoryUnequipItem |
CharacterItem, int |
A Character Item was unequipped from a slot. |
OnInventoryWillAddItem |
CharacterItem |
A Character Item is about to be added. |
OnItemSetGroupUpdated |
ItemSetGroup |
An item-set group finished updating. |
OnItemSetGroupWillUpdate |
ItemSetGroup, List<ItemSetStateInfo> |
An item-set group is about to update and exposes its state list. |
OnItemSetIndexChange |
int, int |
Reports group index and active item-set index during a rebuild. Ordinary selection changes use OnItemSetManagerUpdateItemSet or OnActiveItemSetChange. |
OnItemSetManagerUpdateItemSet |
int, int |
The Item Set Manager should update a group’s active item set. |
OnItemSetManagerUpdateNextItemSet |
int, int, int |
The Item Set Manager reports the group, previous set, and next set indices. |
OnNextItemSet |
CharacterItem, bool |
A Character Item requests the next item set and states whether failure should unequip it. |
OnInventoryDropItem deliberately has two parameter shapes in 3.2.0. If one listener registers both shapes on the same character, use the allowMultipleTypes overload for both registrations.
Item actions, perspective items, and UI
| Event | Parameters | Runtime use |
|---|---|---|
OnAddCrosshairsSpread |
bool, bool |
Starts or stops crosshair spread and identifies recoil-driven spread. |
OnAddSecondaryCameraForce |
Vector3, Vector3, float |
Adds positional and rotational camera force with a rest-accumulation value. |
OnAddSecondaryForce |
int, Vector3, Vector3, bool |
Adds positional and rotational item force for a slot, optionally in global space. |
OnFirstPersonPerspectiveActivate |
FirstPersonPerspectiveItem, bool |
A first-person perspective item activated or deactivated. |
OnFirstPersonPerspectiveItemStartEquip |
CharacterItem |
A first-person Character Item began equipping. |
OnFirstPersonPerspectiveItemUnequip |
CharacterItem |
A first-person Character Item was unequipped. |
OnItemActionTriggerStoppedEarly |
SimpleBaseTrigger |
A trigger in the SimpleBaseTrigger family stopped before it triggered, such as when its character died. Register and unregister with SimpleBaseTrigger as the exact generic payload type. |
OnItemPickupStartPickup |
() |
An Item Pickup began its pickup sequence. |
OnItemPickupStopPickup |
() |
An Item Pickup ended its pickup sequence. |
OnItemReload |
IReloadableItem |
Reloading began for a reloadable item. |
OnItemReloadComplete |
IReloadableItem |
Reloading completed for a reloadable item. |
OnItemShowFullScreenUI |
int, bool |
A Character Item requests that its full-screen UI ID be shown or hidden. |
OnItemStartUse |
IUsableItem, bool |
A usable item began or ended use. |
OnItemTryReload |
int, IItemIdentifier, IItemIdentifier, bool, bool |
A slot requests reload with the item and consumable identifiers plus immediate-reload and equip-check choices. |
OnItemUpdateDominantItem |
CharacterItem, bool |
A Character Item’s dominant-item state changed. |
OnItemUse |
IUsableItem |
A usable item performed its use action. |
OnItemUseComplete |
IUsableItem |
A usable item’s use action completed. |
OnMagicItemCast |
CharacterItem |
A magic Character Item cast. |
OnMagicItemStartStopBeginEndActions |
CharacterItem, bool, bool |
A magic item started or stopped its begin/end actions. |
OnMeleeRecoil |
MeleeRecoilModule |
A melee recoil module applied recoil. |
OnMonitoredCharacterItemChanged |
CharacterItem, CharacterItem |
An item monitor changed from its previous Character Item to a new one. |
OnRefreshSlotItemMonitor |
CharacterItem |
A Character Item requests a slot monitor refresh. |
OnShieldImpact |
ShieldAction, ImpactCallbackContext |
A Shield Action received an impact context. |
OnShootableItemAmmoChange |
CharacterItem, ShootableAmmoModule |
A shootable item’s active ammo module or amount changed. |
OnShootableItemClipChange |
CharacterItem, ShootableClipModule |
A shootable item’s active clip module or amount changed. |
OnShootableWeaponShowProjectile |
GameObject, bool |
A shootable item requests that a projectile object be shown or hidden. |
OnStartReload |
ShootableReloaderModule |
A shootable reloader module began reloading. |
OnThrowableItemAmmoChange |
CharacterItem, ThrowableAmmoModule |
A throwable item’s active ammo module or amount changed. |