
King Karolus Servant
Posts: 2154
Joined: 29 Aug 2007, 22:00
KaM Skill Level: Veteran
Location: In his dark thunderstormy castle
Actions.HouseWareBlock
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.
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...
