My stupid widget doesn't work: Bawww
Posted: 08 Nov 2016, 06:43
http://pastebin.com/2PWUEGam
The entire point of this widget is to allow you to define specific units that will get a fight order right after being built (or while being built, doesn't matter).
The reason for this is because when you create mobile units with a mobile builder, unitIdle is never called, and so if you are using things like the builder auto assist widgets, your mobile nanoturrets will never work, because spring doesn't even see them.
However, if you give the unit you are building any order, like stop, move, fight, etc either while it's building or after it is finished, it will call unitIdle normally and function properly.
This widget is an attempt to fix that issue. It's a bit hamfisted, but it doesn't look like unitIdle is getting fixed any time soon, so "LUA ALL THE THINGS".
Problem is, it doesn't work. I think I am using return in an illegal way. Halp plox.
The entire point of this widget is to allow you to define specific units that will get a fight order right after being built (or while being built, doesn't matter).
The reason for this is because when you create mobile units with a mobile builder, unitIdle is never called, and so if you are using things like the builder auto assist widgets, your mobile nanoturrets will never work, because spring doesn't even see them.
However, if you give the unit you are building any order, like stop, move, fight, etc either while it's building or after it is finished, it will call unitIdle normally and function properly.
This widget is an attempt to fix that issue. It's a bit hamfisted, but it doesn't look like unitIdle is getting fixed any time soon, so "LUA ALL THE THINGS".
Problem is, it doesn't work. I think I am using return in an illegal way. Halp plox.