Page MenuHomeFeedback Tracker

Delete backpack after WeaponAssembled event handler, not before.
Feedback, NormalPublic

Description

I'd like to request to change backpack assembly logic to delete the backpack after WeaponAssembled event handler is done running, this way you could pass variables from the backpack to newly created vehicle, a very useful feature.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Repro script:

if(isNil{player getVariable "WeaponAssembled"}) then {
    player setVariable ["WeaponAssembled", player addEventHandler ["WeaponAssembled", {call WeaponAssembledFunc}]];
};

WeaponAssembledFunc = {
    params ["_unit", "_vehicle"];
    systemChat str ["backpackContainer", backpackContainer player];
};

player addBackpack "B_UAV_01_backpack_F";
player action ["Assemble"];

Execute this code bit when you're a character standing on foot, this will hint backpack entity by the time of the event.

Event Timeline

SaMatra created this task.May 4 2024, 3:07 PM
BIS_fnc_KK set Ref Ticket to AIII-56408.May 5 2024, 5:27 PM

EHs extended instead
Rev 151794

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.May 5 2024, 5:59 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.