HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

'Motion System' Help and critique.

02-01-2009, 10:01 PM#1
Blackroot
Hello there, I'm currently working on fine-tuning my motion system. Currently it runs quite smoothly but there's a few kinks it has. Namely, my boolexpr function I'm passing is not working correctly. I'm also looking for ways to increase functionality if at all possible.

Snippit of boolexpr being passed:

Expand BoolExpr Example:

I'm not sure what's up with the expr, but it's grouping allied units ?

Anyways, it's impossible to determine without the system:

Expand JASS:

Expand Code Example:

As you can see, alot of things still have to be handled by the user, as destroying passed structs is illogical. I'll probably make it so if the callback is null it'll handle destroying automatically. So, is there anything I can do better/fix/add to in this system?

There's also a less dire problem, simply being the Z height settings (UnitFlyHeight) doesn't work at all. I have no idea why? Whenever I code UnitFlyHeight things it always seems to malfunction x-x.

Thanks guys!

PS:
I LOVE FUNCTION POINTERS <3.