man_s_our Posted January 2, 2022 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. Link to comment Share on other sites More sharing options...
Freagarach Posted January 3, 2022 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 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