PMC websites shut down November 13th 2025 unless web hosting fees are paid. See up to date status from PMC Website Hosting and Domain Registration Fee Status forum topic. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond November 13th 2025 when web hosting fees are due.

User Tools

Site Tools


arma2:missions:howto-remove-weapon-cargo-from-ambient-vehicles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arma2:missions:howto-remove-weapon-cargo-from-ambient-vehicles [2012/07/31 11:32] – created howto-remove-weapon-cargo-from-ambient-vehicles initial page. snakemanarma2:missions:howto-remove-weapon-cargo-from-ambient-vehicles [2024/08/01 21:23] (current) – links added. snakeman
Line 1: Line 1:
-====== How To Remove Weapon / Magazine Cargo From Ambient Civilian Vehicles ======+====== ArmA 2 Hot To Remove Weapon / Magazine Cargo From Ambient Civilian Vehicles ====== 
 + 
 +[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]] 
 + 
 +**ArmA 2 How To Remove Weapon / Magazine Cargo From Ambient Civilian Vehicles** 
 + 
 +If you ever wanted to make some guerrilla type missions where you have civilian vehicles, but they can't be topped up with nice weapons and magazines, this will help you to keep them empty.
  
 Add this line to the Ambient Civilian Vehicles Module init line: Add this line to the Ambient Civilian Vehicles Module init line:
 <code cpp> <code cpp>
-BIS_silvie_mainscope setvariable ["vehicleInit",{clearMagazineCargo _this; clearWeaponCargo _this}];+BIS_silvie_mainscope setvariable ["vehicleInit",{clearMagazineCargoGlobal _this; clearWeaponCargoGlobal _this}];
 </code> </code>
  
-And the spawned ambient civilian vehicles will have no magazines or weapons in their cargo space.+And the spawned ambient civilian vehicles will have no magazines or weapons in their cargo space. Notice the clearMagazineCargo**Global** command here, if you are not using Global, this does not work in multiplayer dedicated server. 
arma2/missions/howto-remove-weapon-cargo-from-ambient-vehicles.1343734361.txt.gz · Last modified: 2012/07/31 11:32 (external edit)