- Joined
- Feb 6, 2008
- Messages
- 166
I've been trying to find a method for making units that can travel through trees without being able to scale cliffs or travel over water. I can tweak the movement height as needed, but there aren't any movement types that suit this concept.
One work-around I've thought was to use a hashtable to save the X and Y coordinate periodically, and if they ever walked on a cliff or over water, then I'd set their X and Y back to where they most recently were, but this is glitchy, unreliable, and inefficient.
Does anyone know of any way to accomplish this?
Edit: I can't simply change the tree's pathing - only one unit-type should have this kind of capability.
One work-around I've thought was to use a hashtable to save the X and Y coordinate periodically, and if they ever walked on a cliff or over water, then I'd set their X and Y back to where they most recently were, but this is glitchy, unreliable, and inefficient.
Does anyone know of any way to accomplish this?
Edit: I can't simply change the tree's pathing - only one unit-type should have this kind of capability.