• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Attack animation problem (GUI)

Status
Not open for further replies.
Level 5
Joined
Jan 23, 2014
Messages
152
This is just simple but I can't seem to fix this. I tried to put the string "attack 1" in object editor, the unit just starts the animation, but not fully. And then I also tried triggering it, but instead the unit does not do the animation at all.

There doesnt seem to be any problems with the model, coz it works fine in Model editor. Can anyone help me?

  • Getsuga Tenshou
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Getsuga Tenshou
    • Actions
      • Set GT_Caster = (Casting unit)
      • Set GT_CasterLoc = (Position of GT_Caster)
      • Set GT_TargetPoint = (Target point of ability being cast)
      • Set GT_DummyAngle = (Angle from GT_CasterLoc to GT_TargetPoint)
      • Set GT_DummyLoc[0] = (GT_CasterLoc offset by 10.00 towards GT_DummyAngle degrees)
      • Animation - Play GT_Caster's attack 1 animation
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (GT_Caster has buff Acid Bomb) Equal to True
        • Then - Actions
          • Unit - Create 1 Black Getsuga Wave for (Owner of GT_Caster) at GT_DummyLoc[0] facing GT_DummyAngle degrees
          • Set GT_Dummy[0] = (Last created unit)
          • Unit - Create 1 Black Getsuga Wave SFX for (Owner of GT_Caster) at GT_DummyLoc[0] facing GT_DummyAngle degrees
          • Set GT_Dummy[1] = (Last created unit)
          • Trigger - Turn on Getsuga Tenshou Move <gen>
        • Else - Actions
          • Unit - Create 1 White Getsuga Wave for (Owner of GT_Caster) at GT_DummyLoc[0] facing GT_DummyAngle degrees
          • Set GT_Dummy[0] = (Last created unit)
          • Set GT_Dummy[1] = GT_Dummy[0]
          • Trigger - Turn on Getsuga Tenshou Move <gen>


  • Getsuga Tenshou Move
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set GT_MoveDistance = (GT_MoveDistance + 48.00)
      • Set GT_DummyLoc[1] = (GT_DummyLoc[0] offset by GT_MoveDistance towards GT_DummyAngle degrees)
      • Unit - Move GT_Dummy[0] instantly to GT_DummyLoc[1], facing GT_DummyAngle degrees
      • Unit - Move GT_Dummy[1] instantly to GT_DummyLoc[1], facing GT_DummyAngle degrees
      • Set GT_Distance = (Distance between GT_CasterLoc and GT_DummyLoc[1])
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 200.00 of GT_DummyLoc[1] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of GT_Caster)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is in G and do (Actions)
        • Loop - Actions
          • Unit - Cause GT_Caster to damage (Picked unit), dealing 900.00 damage of attack type Spells and damage type Force
          • Unit Group - Add (Picked unit) to GT_Group[1]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • GT_Distance Greater than or equal to 1600.00
        • Then - Actions
          • Unit - Kill GT_Dummy[0]
          • Unit - Kill GT_Dummy[1]
          • Unit Group - Remove all units from GT_Group[0]
          • Unit Group - Remove all units from GT_Group[1]
          • Set GT_MoveDistance = 0.00
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Level 5
Joined
Jan 23, 2014
Messages
152
Already fixed it. The spell is already basesd off channel, I should've set the Data Follow Through Time to 1. Thanks CakeMaster and Chaosy! :)
 
Status
Not open for further replies.
Top