Page MenuHomeFeedback Tracker

someAmmo command is broken in ArmA 3 (works in ArmA 2)
Assigned, WishlistPublic

Description

In ArmA 2 someAmmo would be true if player has anything to shoot or throw

In ArmA 3 someAmmo only true if you have some primaryWeapon ammo.

Details

Legacy ID
110782807
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

spawn player with primary weapon, secondary weapon and hangun. go to debug console execute

hint str someAmmo player; //true

remove all primary weapon magazines

hint str someAmmo player; //false but should be true as we have other weapons and grenades

Additional Information

It works correctly for ArmA 3 vehicles.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 110782807.May 7 2016, 4:04 PM
Killzone_Kid edited a custom field.

Should be fixed in current version.

It is not quite fixed, it will not count loaded magazines. So if I remove everything from inventory and leave loaded weapon it will return false.

This command is still broken. See KK's comment (2013!)