Jump to content
Sign in to follow this  
anfo

Add ammunition to static turret

Recommended Posts

Struggling to remember how to add extra ammunition to a static turret. Have been various commands from Arma scripts with no success. May I request the correct syntax?

Share this post


Link to post
Share on other sites

Here's a sample how I create a static weapon and add ammo:
 

_at1 = createVehicle ["rhs_Kornet_9M133_2_msv", [0,0,0], [], 0, "NONE"];
_at1 setdir 45;
_at1 setpos [(_centerpos select 0)+10, (_centerpos select 1)+10];
_at1 addMagazines ["rhs_mag_9m133",12];

 

addMagazines wiki

  • Like 1

Share this post


Link to post
Share on other sites
41 minutes ago, Nicholas.Bell said:

_at1 addMagazines ["rhs_mag_9m133",12];

 

Thanks @Nicholas.Bell, thought that was for players only, but thank you

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  

×