OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gamato on 09 Feb 2004, 11:27:06

Title: unlimited ammo
Post by: gamato on 09 Feb 2004, 11:27:06
Hi all, I have a question: is it possible to set unlimited ammo for a unit (I need an artillery firing continuously during a mission).
Thanks
Title: Re:unlimited ammo
Post by: headshot_snipe on 09 Feb 2004, 12:21:44
this is just an idea, you could make a script which addmagazine"(name of mag)" to your artilery with a loop every 5 seconds or so...
Title: Re:unlimited ammo
Post by: macguba on 09 Feb 2004, 12:29:35
You could use a hasMagazine or ammo command to check if it has any ammo, and then addmagazine if it doesn't.
Title: Re:unlimited ammo
Post by: gamato on 09 Feb 2004, 14:21:14
Thank you, i'll try it.... ;D