man_s_our Posted January 2, 2022 Report Share Posted January 2, 2022 so, I added some features in my mod (WIP) that included units being hungry/thirsty and supplying units. the hungry units needs gathering food or otherwise they start losing their health. the same (but higher rate) goes for thirsty units. this requires that units automatically go gather their needed supplies but I wonder whether there is predefined functions for this or I need to define a new function that looks for the near supply units and start gathering it. Quote Link to comment Share on other sites More sharing options...
Freagarach Posted January 3, 2022 Report Share Posted January 3, 2022 You can check out UnitAI and then specifically the part around finishing construction. Units look for the closest resource there. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.