HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leap Skills (you've seen them all, not sure about this one)

11-08-2006, 09:15 PM#1
unyx
I was just wondering if such a thing is possible.

We all know how to make a Leap/Jump skill whether it be GUI or JASS. However, what if you could determine the power of the leap/jump relating to the momentum?

Okay, so a simple example would be, hero A is running, while running, you cast the skill and you leap forward - but if you cast it when you are stationery then you just jump in the air and land back to the same spot.

Is there a kinda, variable to check a unit's state whether its moving or stationery?

Sorry if this has been asked before, I searched and was unable to find anything (then again, not sure what to search either..)
11-08-2006, 09:34 PM#2
Captain Griffen
You can track it's location periodically and then use that to work out the speed. Depends on the number of units you want to do it for (for performance reasons). 12 units would be fine.
11-12-2006, 07:59 PM#3
unyx
Quote:
Originally Posted by Captain Griffen
You can track it's location periodically and then use that to work out the speed. Depends on the number of units you want to do it for (for performance reasons). 12 units would be fine.


Thanks for this reply. Much appreciated, never really thought about doing that haha. But if I made it on like 4 different heroes it would be 48 units. Would that be a problem in terms of latency quality?
11-14-2006, 01:24 PM#4
MaD[Lion]
well i think u always can get the unit X and Y real values, tat doesnt lag much. Just dont get it's location ;)
11-14-2006, 01:58 PM#5
Jazradel
Actually locations are faster, but the cleanup slows them down enormously.

48 units might be a problem. Give it a try anyway. If worse comes to worse, you can change your maps specifications.