Uncle
Warcraft Moderator
- Joined
- Aug 10, 2018
- Messages
- 7,754
I'm working on a Tower Defense map and I'm having issues with movement/pathing.
So I'm currently using the Float movement type on my Monsters (the enemies that move along the path) because without it they will not walk in straight lines when going from one point to another. The issue there is that once these units reach the end of the path they're teleported into an arena where they'll fight like a standard unit. The problem here is that the Float movement type prevents them from moving towards enemies, they can still attack but not move. It's like they're stuck on Hold Position or something.
I'm really trying to avoid creating multiple Unit-Types of the same Unit. Here's what I've tried so far with no success.
I've tried changing their Movement Types via triggers:
Of course this native doesn't work yet or I'm not using it properly.
I've tried Removing/Adding the Move ability from the unit in hopes that it might do something with no luck.
That's about it actually. Any ideas would be greatly appreciated!
So I'm currently using the Float movement type on my Monsters (the enemies that move along the path) because without it they will not walk in straight lines when going from one point to another. The issue there is that once these units reach the end of the path they're teleported into an arena where they'll fight like a standard unit. The problem here is that the Float movement type prevents them from moving towards enemies, they can still attack but not move. It's like they're stuck on Hold Position or something.
I'm really trying to avoid creating multiple Unit-Types of the same Unit. Here's what I've tried so far with no success.
I've tried changing their Movement Types via triggers:
Lua:
BlzSetUnitIntegerField(mc.unit, UNIT_IF_MOVE_TYPE, 1) -- 0 = none, 1 = foot, 2 = horse, 3 = fly, 4 = hover, 5 = float, 6 = amphibious
I've tried Removing/Adding the Move ability from the unit in hopes that it might do something with no luck.
That's about it actually. Any ideas would be greatly appreciated!