Page MenuHomeFeedback Tracker

setVehicleAmmoDef removes ammo from units
New, NormalPublic

Description

setVehicleAmmoDef removes weapons and ammo from passenger.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Place a vehicle in editor (which has some extra empty place for you to sit in),
  2. Place a playable unit
  3. Start mission
  4. Get in vehicle
  5. Run the following code "vehicle player setVehicleAmmoDef 1"
  6. check your hands, they are empty
Additional Information

When placeing a car with default units inside, making one of them playable and running this code doesnt seem to remove the weapons/ammo.

Event Timeline