Page MenuHomeFeedback Tracker

New commands lack Array version
Assigned, WishlistPublic

Description

The following commands lack an array version:

  • addItemToBackpack
  • addItemToVest
  • addItemToUniform

This prevents the user from adding multiple items to a specific container at once.

Example:

Add a couple of red chemlights to the uniform:

this addItemToUniform "Chemlight_red";
this addItemToUniform "Chemlight_red";

By creating an array version of this commands, the code would be the following:

_x addItemToUniform ["Chemlight_red",2]

This would allow the scenario creator and/or scripter to save time and resources when producing user content, as well as allowing for an easier to read and cleaner code.

Details

Legacy ID
2997881123
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Scripting
Steps To Reproduce

N/A

Additional Information

N/A

Event Timeline

HKFlash edited Steps To Reproduce. (Show Details)Nov 13 2013, 7:51 PM
HKFlash edited Additional Information. (Show Details)
HKFlash set Category to Scripting.
HKFlash set Reproducibility to N/A.
HKFlash set Severity to None.
HKFlash set Resolution to Open.
HKFlash set Legacy ID to 2997881123.May 7 2016, 5:24 PM

This would still be good to have. If an alternate syntax for the existing command isn't possible, it could be done as an additional command the same way as addMagazine/addMagazines, e.g. addItemsToBackpack.