Page MenuHomeFeedback Tracker

Script Command: getWeaponCargo has a bug
Closed, ResolvedPublic

Description

The command return the false types of weapons.

Details

Legacy ID
814214272
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Put two "hgun_P07_F" and two "hgun_P07_snds_F" in a crate.
  2. systemChat format["output : %1",getWeaponCargo cursorTarget]
  3. The Result is [["hgun_P07_snds_F"],[4]]

And this is wrong!!!

Additional Information

Event Timeline

shukari edited Steps To Reproduce. (Show Details)Nov 13 2014, 2:53 AM
shukari edited Additional Information. (Show Details)
shukari set Category to Scripting.
shukari set Reproducibility to Always.
shukari set Severity to None.
shukari set Resolution to No Bug.
shukari set Legacy ID to 814214272.May 7 2016, 7:49 PM
shukari added a subscriber: shukari.

Same with bug with the "weaponCargo" command!!!

Same problem with this weapons:
hgun_Rook40_F and hgun_Rook40_snds_F = two hgun_Rook40_snds_F

Ok, if you spawn two "hgun_Rook40_snds_F" and put of one the "muzzle_snds_L" away. Then you have a "hgun_Rook40_snds_F" and a "hgun_Rook40_F". But Arma3 or the crate dont understand this.

If you spawn (with a script command) a "hgun_Rook40_F" and a "hgun_Rook40_snds_F" then getWeaponCargo return the correct result ([["hgun_Rook40_F","hgun_Rook40_snds_F"],[1,1]]).

Cannot confirm.

wh = "weaponholdersimulated" createvehicle position player;
wh addWeaponCargoGlobal ["hgun_P07_F", 2];
wh addWeaponCargoGlobal ["hgun_P07_snds_F", 2];
hint str getWeaponCargo wh;

[["hgun_P07_F","hgun_P07_snds_F"],[2,2]]

KK the problem is this -> http://feedback.arma3.com/view.php?id=21695
I spawn two "hgun_P07_snds_F" and from one i put of the silencer. Then put the P07 with Silencer and the P07 without silencer in a crate and execute the commdand. You will see the result are two "hgun_P07_snds_F". And that is horrible for housing systems...

So shall I resolve this ticket as no bug, since getWeaponCargo works as it should and the problem is with how guns with default attachments are handled by the engine?

yeah, please close this and http://feedback.arma3.com/view.php?id=21695 ticket. thx