- Joined
- Mar 24, 2008
- Messages
- 184
Hi,
I'm trying to do a charge spell that stops if there are some obstacles (trees, portals, walls, buildings) but keeps going to the target if there are other units on your way. Till now i went up with making a group with units around the location you have to reach and if it's not empty then it will turn off collision for the unit (if it's empty instead it'll turn on collision). As you've already guessed, this doesn't work that great, if i make a too little region then i have troubles with big units (such as abominations), if i make it too big then it'll charge units towards thin obstacles (walls, portals). i know this is because triggers consider a unit in a region only if its center is inside
Any idea on how to make this work?
I'm trying to do a charge spell that stops if there are some obstacles (trees, portals, walls, buildings) but keeps going to the target if there are other units on your way. Till now i went up with making a group with units around the location you have to reach and if it's not empty then it will turn off collision for the unit (if it's empty instead it'll turn on collision). As you've already guessed, this doesn't work that great, if i make a too little region then i have troubles with big units (such as abominations), if i make it too big then it'll charge units towards thin obstacles (walls, portals). i know this is because triggers consider a unit in a region only if its center is inside
Any idea on how to make this work?
Last edited: