Page MenuHomeFeedback Tracker

calling setVehicleAmmoDef on a vehicle switches the current weapon
Assigned, WishlistPublic

Description

When running (vehicle player) setVehicleAmmoDef 1; in a debug console it switches the current weapon to the default weapon.
setVehicleAmmoDef should not switch the vehicle's weapon.

Details

Legacy ID
1430943922
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Get in a vehicle such as the M4 scorcher as gunner
  2. Switch the weapon from the default HE rounds to mine cluster rounds
  3. Run (vehicle player) setVehicleAmmoDef 1; in the debug console
  4. You will see that weapon was switched back to the HE rounds

Event Timeline

Bored edited Steps To Reproduce. (Show Details)Nov 22 2013, 2:20 AM
Bored edited Additional Information. (Show Details)
Bored set Category to Scripting.
Bored set Reproducibility to Always.
Bored set Severity to None.
Bored set Resolution to Open.
Bored set Legacy ID to 1430943922.May 7 2016, 5:29 PM
Bored edited a custom field.
Bored added a comment.Dec 24 2013, 8:37 PM

I have found that if you are in a static AA launcher and you run (vehicle player) setVehicleAmmoDef 1 then it will switch to a blank firemode and you won't be able to fire at all unless you press f to switch to the normal firemode.

The command does restore the ammo to full however (as it should).