• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

One more animation problem

Status
Not open for further replies.
Level 14
Joined
Jan 15, 2007
Messages
349
Nope I dont think you can't do this on that way you have explained. But you could make a periodic trigger like this, first the start trigger:
  • JumpStart
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Aas-Schwarm
    • Actions
      • Set caster = (Triggering unit)
      • Set location = (Position of caster)
      • Set location2 = (Target point of ability being cast)
      • Set distance = (Distance between location and location2)
      • Set Startdistance = (Distance between location and location2)
      • Set angle = (Angle from location to location2)
      • Unit - Add Ravenform to caster
      • Animation - Change caster flying height to 600.00 at 400.00
      • Unit - Remove Ravenform from caster
      • Animation - Play caster's slam animation
      • Custom script: call RemoveLocation(udg_location)
      • Custom script: call RemoveLocation(udg_location2)
      • Unit - Turn collision for caster Off
      • Trigger - Turn on JumpPeriodic <gen>
After that the periodic trigger:
  • JumpPeriodic
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set location = (Position of caster)
      • Set location2 = (location offset by 10.00 towards angle degrees)
      • Unit - Move caster instantly to location2
      • Custom script: call RemoveLocation(udg_location)
      • Custom script: call RemoveLocation(udg_location2)
      • Set distance = (distance - 10.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Startdistance / 2.00) Greater than or equal to distance
        • Then - Actions
          • Set Startdistance = 0.00
          • Unit - Add Ravenform to caster
          • Animation - Change caster flying height to 0.00 at 400.00
          • Unit - Remove Ravenform from caster
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • distance Less than 0.00
        • Then - Actions
          • //End of the spell, here you could add damage functions
          • Unit - Turn collision for caster On
          • Set caster = No unit
          • Trigger - Turn off (This trigger)
        • Else - Actions
If the ability "Ravenform" is wrong Im sorry because I just have the german version of the WE. If the abilityname is wrong the Id of the ability is 'Amrf'.

So I think now it should work!
 
Status
Not open for further replies.
Top