Jump to content

Sign in to follow this  
monyetswa

How to Change Mortar Ammo

Recommended Posts

I want the player to be able to use a M252 with WP ammo.

So I put this in the init field of the M252:

{this removemagazines _x} foreach magazines this; this addMagazine "8Rnd_81mmWP_M252"

Upon loading I get a bin.config/bin error regarding "8Rnd_81mmWP_M252"

Is this a problem with my game? Do I have the code wrong?

Any advice on changing mortar ammo will be appreciated, thanks.

Share this post


Link to post
Share on other sites

Here from one of my old script:

_vehicle = _this select 0;
_vehicle setvehicleammo 0;
titleText ["Reloading", "PLAIN"];
sleep 0.5;
titleText ["", "PLAIN"];
sleep 0.5;
titleText ["Reloading", "PLAIN"];
sleep 0.5;
titleText ["", "PLAIN"];
sleep 0.5;
titleText ["Reloading", "PLAIN"];
sleep 0.5;
titleText ["", "PLAIN"];
sleep 0.5;
_vehicle addMagazineTurret ["ARTY_8Rnd_81mmWP_M252",[0]];

Launched by an addAction:

_reload_wp = mortar_name addAction ["Reload WP", "=BTC=Arty\reload_wp.sqf"];

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  

×