Im having some really wierd issues with changeing a Units height with triggers.
So what im trying to do is creating a trigger for a new ability i've made. The main idea with the ability is that is kinda like Zealots charge but instead of just rushing to a target the caster will jump up in the air and then land at the targets position. Ive managed to trigger so the caster "jumps"/changes his height and then goes back to the ground.
The problem is the 2nd time I use the ability, instead of raising to the height I've specified (0.3) he goes up far beyond that to something like 2.0 and the 3rd time seems to be even furhter. Seems like instead of making the Unit go to the height it adds to the current height. Here's and img of the triggers:
(heightMax is a local variable Real set to 0.3)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Im having some really wierd issues with changeing a Units height with triggers. So what im trying to do is creating a trigger for a new ability i've made. The main idea with the ability is that is kinda like Zealots charge but instead of just rushing to a target the caster will jump up in the air and then land at the targets position. Ive managed to trigger so the caster "jumps"/changes his height and then goes back to the ground.
The problem is the 2nd time I use the ability, instead of raising to the height I've specified (0.3) he goes up far beyond that to something like 2.0 and the 3rd time seems to be even furhter. Seems like instead of making the Unit go to the height it adds to the current height. Here's and img of the triggers: (heightMax is a local variable Real set to 0.3)