Page MenuHomeFeedback Tracker

magazinesAmmoFull command does not work as expected for all vehicles
Assigned, WishlistPublic

Description

magazinesAmmoFull command does not return the complete set of magazines for "B_UAV_02_CAS_F". I didn't test it but it must be the same for eastern version "O_UAV_02_CAS_F".

Details

Legacy ID
427535263
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Execute following commands to see the output of the command. For UAV it doesn't return the GBU bombs.

myv = "B_UAV_02_CAS_F" createVehicle position player; hint str magazinesAmmoFull myv
"Laserbatteries",1,true,65536,"Laserdesignator_mounted"

myv = "I_Plane_Fighter_03_CAS_F" createVehicle position player; hint str magazinesAmmoFull myv
[["300Rnd_20mm_shells",300,true,65536,"gatling_20mm"],["2Rnd_LG_scalpel",2,true,65536,"missiles_SCALPEL"],["2Rnd_AAA_missiles",2,true,65536,"missiles_ASRAAM"],["2Rnd_GBU12_LGB_MI10",2,true,65536,"GBU12BombLauncher"],["120Rnd_CMFlare_Chaff_Magazine",120,true,65536,"CMFlareLauncher"]]

Additional Information

After more testing it appears that following commands don't work either with UAVs:

getconnecteduav player setAmmo ["missiles_SCALPEL", 1] => doesn't change the number of missiles to 1

getconnecteduav player ammo "missiles_SCALPEL" => returns 0 although UAV has 6 missiles

Event Timeline

d3nn16 edited Steps To Reproduce. (Show Details)Sep 7 2013, 2:27 PM
d3nn16 edited Additional Information. (Show Details)
d3nn16 set Category to Scripting.
d3nn16 set Reproducibility to Always.
d3nn16 set Severity to None.
d3nn16 set Resolution to Open.
d3nn16 set Legacy ID to 427535263.May 7 2016, 4:35 PM
sms added a comment.Sep 29 2013, 2:45 PM

Also it doesn't return "Laserbatteries" in "Laserdesignator".

From some testing I've done regarding this command, it only appears to work on the "first" turret of the vehicle (Turret [0]). On vehicles with multiple "turrets" (tanks, APCs, helicopters), the command will only return magazines from the primary turret. None of the magazines from any additional turrets (commander's weapons, pilot's weapons) will be returned through this command.

d3nn16 added a subscriber: d3nn16.May 7 2016, 4:35 PM

magazinesAmmoFull now returns the mags from drons but as Superxdude pointed out it still only works for turret 0 (v1.44).

magazinesAmmoFull should include all turrets and should also include the turret path as an additional info in the already returned lists:

[["300Rnd_20mm_shells",300,true,65536,"gatling_20mm", >>put turret path here<<],["2Rnd_LG_scalpel",2,true,65536,"missiles_SCALPEL", >>put turret path here<<],["2Rnd_AAA_missiles",2,true,65536,"missiles_ASRAAM", >>put turret path here<<],["2Rnd_GBU12_LGB_MI10",2,true,65536,"GBU12BombLauncher", >>put turret path here<<],["120Rnd_CMFlare_Chaff_Magazine",120,true,65536,"CMFlareLauncher", >>put turret path here<<]]

AWG added a subscriber: AWG.Dec 12 2020, 7:27 PM
d3nn16 removed a subscriber: d3nn16.Dec 21 2020, 1:34 PM