Page MenuHomeFeedback Tracker

There are no functions for adding weapons to a player's vest or uniform (unitVest, and unitUniform needed)
Closed, ResolvedPublic

Description

For adding a weapon to a player's backpack, you can do:

(unitBackpack player) addWeaponCargoGlobal ["hgun_P07_F", 1];

However ... there are no equivalent commands like:

(unitVest player) addWeaponCargoGlobal ["hgun_P07_F", 1];
(unitUniform player) addWeaponCargoGlobal ["hgun_P07_F", 1];

Basically this is a request for developers to add two new functions:

unitVest, and unitUniform that behave just like unitBackpack does.

Details

Legacy ID
1400131850
Severity
Minor
Resolution
Duplicate
Reproducibility
Always
Category
Scripting

Event Timeline

micovery edited Steps To Reproduce. (Show Details)Mar 20 2013, 7:20 AM
micovery edited Additional Information. (Show Details)
micovery set Category to Scripting.
micovery set Reproducibility to Always.
micovery set Severity to Minor.
micovery set Resolution to Duplicate.
micovery set Legacy ID to 1400131850.May 7 2016, 12:55 PM

This causes major problem with saving a loadout and adding it later upon respawn. The player can equip weapons to a uniform / vest from an ammo box, but you can't add them using a script? So saved loadouts don't work properly?

unitVest / unitUniform would be great commands to have so the containers can be as useful as backpacks.

Covered by #3278.