Jump to content
Sign in to follow this  
Kladho

Weapen='Object"

Recommended Posts

weapon on the ground begin mission howto ???

Share this post


Link to post
Share on other sites

First create a weaponholder with createVehicle, second use addWeaponCargo (or addMagazineCargo) on this weaponholder. Something like this:

     _obj = createVehicle ["weaponholder", _pos, [], 0, "NONE"];
     _obj addWeaponCargo ["weaponClassName", 1];

Share this post


Link to post
Share on other sites

This is from A1 but should work. Here is an example of creating an invisible object called a weapon holder that will allow you to place weapons and ammo on the ground. _ground is a variable to name the weapon holder and can be named anything. _position is a variable that holds a position array. If you don't have one you can just type in the position manually. You can add any A2 weapon class name and magazine to the weaponholder, for the example I have used an M16 and and magazines.

_ground = "WeaponHolder" createVehicle _position; // Create an invisible weapon holder on the ground.
_ground addMagazineCargo ["30Rnd_556x45_Stanag",2]; // Add two 30-RD magazines to the weaponholder.
_ground addWeaponCargo ["M16A2", 1]; // Add one M16 to the weapon holder.

Good luck!

Edited by Loyalguard
clarified

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×