luorax
Invasion in Duskwood
- Reaction score
- 67
*SOLVED*
EDIT: Well, I forgot about the invisible shop unit that keeps staying there after the champion dies. I've written a simple "ProjectileHit" function that will check everything now. SO problem solved.
I've got a little problem and seems it's way too complicated for me to get a rid of it.
So I'm using Kenny's Projectile System. I'm lovin' it, has a great interface, fast and effective.
For some reason if the projectile hits a dead champion (or reaches it's last position) stops moving and explodes, however it's written in the function that only alive units should stop it. ("if IsUnitEnemy(u,p.owningPlayer) and UnitAlive(u) then")
I've tried to solve it using "GetWidgetLife()" but nothing changed.
Any ideas what should I do?
EDIT: Well, I forgot about the invisible shop unit that keeps staying there after the champion dies. I've written a simple "ProjectileHit" function that will check everything now. SO problem solved.
I've got a little problem and seems it's way too complicated for me to get a rid of it.
So I'm using Kenny's Projectile System. I'm lovin' it, has a great interface, fast and effective.
For some reason if the projectile hits a dead champion (or reaches it's last position) stops moving and explodes, however it's written in the function that only alive units should stop it. ("if IsUnitEnemy(u,p.owningPlayer) and UnitAlive(u) then")
I've tried to solve it using "GetWidgetLife()" but nothing changed.
Any ideas what should I do?