Jump to content
Sign in to follow this  
Clarentavious

Help please

Recommended Posts

Ok, I am trying to have a chopper (like an Mi24 for example) that only carries 30mm rounds. I can't do this by limiting the ammo bar near the fuel and health lines because that brings down the 30mm too (and I want that at full capacity).

Let's say I named my chopper "goub"

I tried loweing the ammo bar to nothing, then putting in the initialization line

goub ammo "30mm Cannon" 500

That didn't work. I'm using 1.46 for the moment. I know OFP code fairly well, but I'm not expert on it. Can someone help? What would be the correct way to limit the ammo?

Share this post


Link to post
Share on other sites

You can try:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this removeweapon "HellfireLauncherHind"; this removeweapon "Rocket57x64"<span id='postcolor'>

Putting that in it's init field or putting this in:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this; this addmagazine "MachineGun30"; this addweapon "MachineGun30"<span id='postcolor'>

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  

×