Page 1 of 1

Actions.HouseWareBlock

PostPosted: 26 Sep 2015, 11:44
by The Dark Lord
Hi,
I'm having trouble with this. I want the AI to cut stones, but it keeps closing its storehouse for stone. The only way to get around this (as far as I know) is to use a function on OnTick that checks whether stone is blocked in the storehouse, and if it is, to unblock it... But that seems very ineffecient. I'm planning on loads of scripts for this mission so I need my scripts to be efficient as I can make them and the AI overruling them is not a way to help... :( It would be cool if I could just make sure it will stay unblocked at the start of the mission, rather than checking every tick (or couple of ticks, of course I could delay it, but that's not the point) and eating pc's performance.

Re: Actions.HouseWareBlock

PostPosted: 26 Sep 2015, 11:47
by RandomLyrics
Hm u can disable AI-autobuild, dont know if u need it :P
Or u can use Actions.HouseWareBlock every 1 second, .gametime mod 10 = 0 , it could help.

Re: Actions.HouseWareBlock

PostPosted: 26 Sep 2015, 11:55
by The Dark Lord
Disabling AI autobuild seems to work. :D
Thanks! :)