HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jumping Ability Problem

04-16-2005, 11:57 PM#1
TheImpersonator
Okay, I made an ability similar to Cervantes's ability in ToB. The problem is when my warden jumps into the air, she ALWAYS LANDS AT THE CENTER OF THE MAP despite where she jumped from. These are the triggers I'm using for the spell.
------------------------------------------------------------------------
Events
Unit - A unit starts the effects of an ability
Conditions
(Ability being cast) Equal to shockwave
Actions
Unit - Pause (Triggering unit)
Unit - Add Metamorphasis to Warden
Animation - Change flying height to 2000 at rate-5800
Unit - Remove Metamorphasis from Warden
Wait 0.50 seconds
Unit - Move (Triggering unit) to target of ability being cast
Wait 0.50 seconds
Animation - Chance flying height to 0 at rate-5800
Unit - Unpause (Triggering unit)
------------------------------------------------------------------------
The reason I added metamorphasis is because the unit can't change flying height unless it's a flying unit. If the alternate form for metamorphasis is a flying unit, the editor lets you change flying height of the hero (without using metamorphasis). Everything works fine besides the landing location.
04-17-2005, 12:02 AM#2
Raptor--
check the reference of (target of ability being cast), it probably loses its reference after wait actions

you can try making a local location temp action and setting that = to the target of the ability and then using that instead
if its not multiinstanced you can just use a global point = (target of ability being cast)
04-17-2005, 12:24 AM#3
TheImpersonator
Hey , thanks man, I set the variable point of target of ability being cast and it worked.
04-17-2005, 09:06 AM#4
Anitarf
Yes, cast event responses are bugged like that, they don't act localy and can get reset like that.

Another possibility to solve this problem (you solved it already, but anyway) is to use a point-targeting summon spell instead of a normal spell, and use the event "unit spawns a summoned unit". You can then use "position of (summoned unit)" to get the target point of the spell, because summon event responses like (summoned unit) don't get reset with waits. The summoned unit can be just an invisible dummy unit.