Skip to content

Filtered getUnitLoadout #1236

@BrettMayson

Description

@BrettMayson

Is your feature request related to a problem?
Some mods (TFAR, ACRE, Unique Maps) use an ID system to track individual items. This will cause issues with getUnitLoadout and setUnitLoadout.

Solution you'd like:
CBA_fnc_getUnitLoadout that is a drop in replacement for its vanilla counterpart. Also create CBA_fnc_addUnitLoadoutFilter and CBA_fnc_removeUnitLoadoutFilter that take code as a parameter, that code takes a getUnitLoadout array and must return a getUnitLoadout array. The code will be used to replace any ID items with their base version.

Additional context:
ACRE Example

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions