Teleporting Animations

Discussion in 'World Editor Help' started by PooBucket, Feb 3, 2011.

  1. PooBucket

    PooBucket New Member

    Ratings:
    +12 / 0 / -0
    Hey, I've been trying to make a teleport spell look more flashy. You guys know how the Blood Mage sometimes twirls around when he attacks? Well, I've been trying to get a spell to teleport anywhere but also use that animation. I've been trying the JASS function but to no success (unless I get him to do it like .2 seconds after he's teleported). Any help? :p

    Btw I use Channel since Blink can be a bit dodgy...
     
  2. Sil3nt

    Sil3nt SUP?

    Ratings:
    +136 / 0 / -0
    Code:
       Events
            Player - Player 1 (Red) types a chat message containing s as An exact match
        Conditions
        Actions
            Set BloodMage = Blood Mage 0023 <gen>
            Wait 0.01 seconds
            Custom script:   call SetUnitAnimationByIndex(udg_BloodMage,5)
            Custom script:   <Teleport/Move Actions>
    
    Obviously need some sort of wait action after 2nd last line or else he'll move pretty much instantly before you actually see the animation. I feel like I'm not understanding your problem correctly, though.
     
  3. PooBucket

    PooBucket New Member

    Ratings:
    +12 / 0 / -0
    Basically Channel except triggered to act like Blink (to avoid complications with that spell). However, when cast, the Blood Mage will either only do the animation when he is at the targetted location or the other way, he won't do an animation at all, because he will try to do stand and the twirling animation at the same time which stand overrides.
     
  4. Sil3nt

    Sil3nt SUP?

    Ratings:
    +136 / 0 / -0
    The 'wait' command is there to solve the conflicting animations problem. You'll need one right before moving the unit to the target location as well or add a cast time (trial and error).
     
  5. PooBucket

    PooBucket New Member

    Ratings:
    +12 / 0 / -0
    Yes, I have already tried that, and again, the Blood Mage only does it when he is at the targetted position, even if I put the slightest wait there (I vaguely said at the beginning of the thread). That's because he will start with stand (at his position), then queue the twirl (at destination), and I cannot remove that stand animation because he will use another animation instead.
    So, I want him to ONLY twirl at his position but once he teleports to his destination he does not do any more casting animation. The wait doesn't solve the problem unfortunately.

    Also I am using the JASS version of move instantly so it doesn't interfere with animations or make him stop.

    When he tries to do both, I think it was something to do with Channel's follow through time (which I tried to solve the problem) - wasn't too sure about it.
     
  6. PooBucket

    PooBucket New Member

    Ratings:
    +12 / 0 / -0
    Bump
     

Share This Page