Map Database  •  FAQ  •  RSS  •  Login

Actions.HouseWareBlock

<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 26 Sep 2015, 11:44

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.
<<

RandomLyrics

User avatar

Sword Fighter

Posts: 298

Joined: 21 Jul 2013, 02:15

KaM Skill Level: Fair

Post 26 Sep 2015, 11:47

Re: Actions.HouseWareBlock

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.
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 26 Sep 2015, 11:55

Re: Actions.HouseWareBlock

Disabling AI autobuild seems to work. :D
Thanks! :)

Return to “Dynamic Scripting”

Who is online

Users browsing this forum: No registered users and 10 guests