Page MenuHomeFeedback Tracker

addItemToVest
Closed, ResolvedPublic

Description

Any Magazines or Weapons added with Command unit addItemToVest do not work.
This is not the case with Range finders, binoculars and laser designators.

Details

Legacy ID
1728333502
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Inventory
Steps To Reproduce

vestItems player;
removeAllItems player
{player addItemToVest _x;} foreach _vestItems;

Additional Information

cannot reload weapon of fire weapons with magazines from vest.

Event Timeline

Ferit edited Steps To Reproduce. (Show Details)Nov 1 2013, 12:56 PM
Ferit edited Additional Information. (Show Details)
Ferit set Category to Inventory.
Ferit set Reproducibility to Always.
Ferit set Severity to None.
Ferit set Resolution to Fixed.
Ferit set Legacy ID to 1728333502.May 7 2016, 5:18 PM

Works for me but I'm on the dev branch.

When you edited repro you mean

_vestItems = vestItems player;
removeAllItems player;
{player addItemToVest _x;} foreach _vestItems;

Not sure what exactly are you trying to show. removeAllItems won't remove magazines, other than that it works fine.

Ferit added a subscriber: Ferit.May 7 2016, 5:18 PM
Ferit added a comment.Nov 1 2013, 4:30 PM

It looks like the magazine is added with no ammo (white bar on the left of icon is empty)

Ferit added a comment.Nov 1 2013, 4:38 PM

sorry your right about the removeAllItems. I am making a script that copies a units loadout to another unit even down to the ammo count for each magazine.The new command addItemToVest should make it easier but the magazines are empty and cannot even be removed by {player removeMagazine _x} forEach magazines player;

_vestPlayer = vest _player;
_vestItems = vestItems _player;

removeVest player;
player addVest _vestPlayer;
{player addItemToVest _x;} foreach _vestItems;

As I said it works fine on dev branch, means it has already been fixed.

Ferit added a comment.Nov 1 2013, 4:41 PM

cool thanks

Ferit added a comment.Nov 1 2013, 4:51 PM

Confirmed it is working in the dev build. thanks again

Mass closing resolved issues not updated since November.