Page 1 of 1

brainspark with instance properties.

Posted: Wed Dec 09, 2015 5:17 pm
by ZoomV
Surely someone else has thought of this before, but in case not here I go.

As far as I know all odfs can have a [InstanceProperties] section, and I know instance properties can be manipulated in LUA.
It occurred to me that you might be able to have AISizeType as a instance property for a infantry unit. With that it could be possible to get around the no overlapping AI pathing limitation, by simply having the barriers for one level be a different aisizetype than the other level, and using region triggers in lua to change a unit's AISizeType when it hits another floor. The limitation being that AI goals (commandposts) and spawn points cannot be in overlap zones.

Of course this depends on being able to use LUA to grab onto a specific unit and change it's instance properties, unfortunately I know far too little about LUA to be able to test this, and it being finals week isn't helping.