Jump to content
Sign in to follow this  
hypno toad

spawning individual weapons

Recommended Posts

I am attempting to put together some sort of zombie-evolution style mission.

And I would like to have specific weapons hidden in certain areas throughout the map. so, does anybody know how to place individual weapons on the ground (preferably without a mod)

Share this post


Link to post
Share on other sites

I can't test using ArmA right now, so this might not be 100% correct, but from memory you need to create on object of class "weaponHolder". It acts a weapon crate, and uses a weapon proxy as it's p3d. This means it is invisible when empty, and looks like whatever weapon you place in it.

Share this post


Link to post
Share on other sites

so, to place weapons inside it, you say

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addweapon "m9"

?

Share this post


Link to post
Share on other sites

No, you need to use addWeaponCargo, example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">fufu = "weaponHolder" createVehicle getPos player

fufu addWeaponCargo ["ak74",1]

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  

×