Godfather22 Posted March 20, 2021 Posted March 20, 2021 Is it possible to set how many airframes say 10 - F/18. But then resupply them with a crate or a timer?
Grimes Posted March 22, 2021 Posted March 22, 2021 Yes, you can use the warehouse system to set how many exist. However the resupply can't really be triggered. Suppose with the settings for it you could get it to resupply on a timer of sorts. The rules are basically if the supply of some object is below the limit then send the supplies up to a given size. There arent triggers for resupplying warehouses, but it can be cheated if you use AI. Not that you can read the current warehouse value via triggers anyway, but if a base has 5 F-18s at the base and you spawn AI in air, that then land, park, and despawn, then the aircraft and whatever they have onboard will be added to the warehouse. 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
Godfather22 Posted March 23, 2021 Author Posted March 23, 2021 Ahh that makes sense, is there a way to script this? how would I check to see if a player loses a plane, so I can resuplly via AI
Grimes Posted March 24, 2021 Posted March 24, 2021 There are no triggers or scripting functions that have access to any of it. The best you can do is make guesses based on the rules of the system. An aircraft spawns that is -1 from that warehouse for a given aircraft type. Using getAmmo you can know some of what they have loaded on board. 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
Recommended Posts