| 01-20-2007, 02:56 AM | #1 |
Alrighty, so I'm making an enting tag with some half way decent heroes and one of the one's I'm working on is a frog. I want one of his abilities to essentially be him jumping onto the head of a target unit, doing damage and stunning the target unit for whatever time (I can manage the stun / damage part). What I'm really needing help with is the triggering (or JASSing) to get the art right. |
| 01-20-2007, 07:56 AM | #2 |
Here's the gist of what you'll need to do (the way I see it, of course): First, figure out what the height is you should use to make the hero sit above the unit correctly, and set the unit's custom value to that number (for each unit in the map). Then, pause the hopping hero and use the fly-height trick change the hopping hero's fly height to the custom value of the unit being hopped on to. Then order the hopping hero to move to a point equal to the position of the unit being hopped on. After that, do your stun things and all that jazz. If the hero needs to stay "on top" of the unit he's hopped on, just attach SFX to the hopped on unit's "overhead" attachment. |
