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.
Description
Description
Details
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.