Jump to content
Sign in to follow this  
Victim9l3

Disable or remove ammo from mounted gun

Recommended Posts

I've been searching scripting topics to find the correct way to do this.

Bi has gone a little crazy with mounting GL on vehicles making them really overpowered. I'm having Madrid apcs land on a beach taking on Green fortifications. Since the Madrid is the only amphibious opfor, I can't just use another vehicle. Having it's default weapon be a GL makes AI destroy everything in it's way. Multiple grenades hitting one fortified section kills any units a big area and behind walls.

Basically I want my greenfor guys to stand a chance. How can I disable the GL so that AI will only used the MG? And/or (hopefully and) what code do I use to remove the ammo for that gun so they won't use it either.

Thanks.

I can't get my victim913 to work anymore so I am now victim9l3

Share this post


Link to post
Share on other sites

Try playing around with removeMagazinesTurret. To check what kind of path you need to use, use weaponsTurret. Example:

copyToClipBoard (str(vehicleName weaponsTurret [turretPath (-1, 0, 1, 2)]));

Above should work. Open up notepad and press CTRL + V to see all the data, you'll be able to use it directly.

And use the example provided in a "Radio Alpha" trigger. I'll just double-check it works.

//

OK, just got done checking. Works. Correct turret path, syntax and magazine name to disable the GMG:

vehicleName removemagazinesturret ["96Rnd_40mm_G_belt",[0]];

Had to use magazinesTurret to check for correct magazine name, weaponsTurret did nothing.

Edited by tryteyker

Share this post


Link to post
Share on other sites

Thank you very much.

----you can't add another weapon. It's part of the model. You might be able to add or change the type of ammo, but I don't think there is another type of ammo for that weapon. Like mortars and artillery comes with standard ammo, but I think you can give it different shells. Like smoke, smoke color, HE rounds, etc. but you might have to wait for official game for that.

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  

×