Page MenuHomeFeedback Tracker

[Requeset] LoadoutChanged Eventhandler
New, NormalPublic

Description

Situation: Currently there is no performant-friendly way to detect a change in the loadout of a unit. This makes tasks like "Collect item" or "Wears specific item" a hassle to script. The introduction of an eventhandler that notifies of changes in the unit's loadout would make these things easier/possible.

Suggestion: Introduction of an eventhandler that can be added to a unit (maybe even a container?) which contains the following

Parameters:
_unit - The unit the event is attached to
_loadoutDifference - An array in the Loadout array format used with getUnitLoadout containing the items that were added/removed with values that correspond to the amount added (1, 2, 3, ...) or removed (-1, -2, -3, ...)

Return: "true" overrides default engine behaviour and does not allow changes to the loadout. This would be useful for restriciting items (eg. certain weapons) from being picked up.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Feature Request

Event Timeline

7erra created this task.Mar 16 2022, 5:25 PM