This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma2:missions:howto-remove-weapon-cargo-from-ambient-vehicles [2012-07-31 11:32] snakeman created howto-remove-weapon-cargo-from-ambient-vehicles initial page. |
arma2:missions:howto-remove-weapon-cargo-from-ambient-vehicles [2014-07-09 19:55] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How To Remove Weapon / Magazine Cargo From Ambient Civilian Vehicles ====== | + | ====== Hot To Remove Weapon / Magazine Cargo From Ambient Civilian Vehicles ====== |
+ | |||
+ | **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. |