Scifer Posted November 4, 2022 Share Posted November 4, 2022 I am trying to find a way to resupply units with MOOSE scripting. The idea is that an airborne infantry would land at an LZ and when it arrives at its destination, the infantry groups and a mortar there would be resupplied. I just need to know if there is any function to resupply these units. Link to comment Share on other sites More sharing options...
Grimes Posted November 4, 2022 Share Posted November 4, 2022 There is no native scripting function to re-arm AI. You either can "respawn" the group by spawning a new one with the exact units in the exact positions or you can spawn certain types of units and rely on the AI to re-arm themselves automatically. Usually most trucks can act as a ammo source, place one in the mission editor and if you see a black circle around the unit with a radius of 100m or so then that unit can rearm other AI. Depending on the unit type and amount of ammunition needing to be re-armed the time it can take has some extensive variation. Though infantry and mortars are pretty quick. The time becomes a factor with larger munitions like the SA-2 where it takes 45 minutes or SA-10 at 30 minutes per missile. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum Link to comment Share on other sites More sharing options...
Scifer Posted November 5, 2022 Author Share Posted November 5, 2022 Thank you so much for your answer! But I was curious. How would you spawn exactly the same units and in the same position? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now