When utilizing the respawnTemplates entry, units with backpacks will drop their backpack when there's a backpack specified in a class within the cfgRespawnInventory class. If no backpack is specified the same occurs. {F22148} {F22149}
Description
Details
- Legacy ID
- 611457867
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
( description.ext )
respawnDelay = 3;
respawnOnStart = 1;
respawnTemplates[] = { "menuInventory" };
class cfgRespawnInventory
{
class guer1 { displayName = "inventory 1"; };
];
( init.sqf )
[resistance, 'guer1'] call BIS_fnc_addRespawnInventory;
( insert unit )
Any unit with backpack - really.
I_engineer_F
// I_soldier_UAV_F
( ingame )
Enter the mission via editor and behold, your backpack is on the ground.
Enter through multiplayer (host, dedicated) and press ESC > Respawn.
This issue will occur regardless of unit, items added to an inventory, location or time. Even if you specify an alternative backpack (e.g. backpack = 'B_Carryall_cbr') it will drop the default backpack right underneath you.
I have added a barebones mission which has all the necessary code included.
Event Timeline
Since this is caused by removeBackpack which has been reported as fixed today, this should be fixed too.
Confirm?