Page MenuHomeFeedback Tracker

Command unavailable to transfer current weapon *with custom attachments* to backpack
New, WishlistPublic


the action command "DropWeapon" will move the weapon and custom attachments to the backpack however the game has to be started first and the command has to execute after more than 0 seconds to accomplish. additionally there is an action that occurs that shows the weapon being 'stowed' during this period.


Legacy ID
Unable To Reproduce
Steps To Reproduce

customize soldier init with any weapon and attachments (that are not listed as options in the cfgweapons combinations (i.e. not srifle_lrr_sos_f but instead srifle_lrr_f w/optic_dms attached))
create trigger with delay of 1 second or more with on action:
soldierOne action ["DropWeapon", unitBackpack soldierOne, currentWeapon soldierOne];

Additional Information

as another way of looking at it, if one wanted to customize a weapon's attachments within a container, he or she would have to addprimaryweaponattachment while on a person and then transfer the weapon to the container. why not have a command instead allow attachment to a weapon within a container like a backpack, groundweapon holder, or ammo box.

Event Timeline

debug edited Steps To Reproduce. (Show Details)Oct 15 2014, 12:09 AM
debug edited Additional Information. (Show Details)
debug set Category to Scripting.
debug set Reproducibility to Unable To Reproduce.
debug set Severity to None.
debug set Resolution to Open.
debug set Legacy ID to 1881018428.May 7 2016, 7:36 PM

I've run across this while working on a loadout saving script.
This is a really weird limitation. Maybe the current updates to attachments that are being done on DEV branch will introduce something for this as well?

EDIT: Would work for your requirements?

debug added a subscriber: debug.May 7 2016, 7:36 PM
debug added a comment.Mar 21 2015, 8:25 PM

yes ImperialAlex, that is perfect.