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)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.