• 🏆 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!

How to change unit height??

Status
Not open for further replies.
Level 5
Joined
May 27, 2007
Messages
144
Hi im trying to made a passive which will work like knockback but instead of only knockbacking the target it will throw it up in the air. I have already the trigger but he doesnt change the units height pls help
  • Rake
    • Events
      • Unit - A unit is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Shaman
      • (Random integer number between 1 and 10) Equal to 1
    • Actions
      • Set Shaman = (Attacking unit)
      • Set RakeTarget = (Attacked unit)
      • Set LoopCounter = 0
      • Unit - Add classification of Eine air-unit to RakeTarget
      • Unit - Remove classification of Eine land-unit from RakeTarget
      • Animation - Play Shaman's victory animation
      • Trigger - Turn on Rakemove <gen>
  • Rakemove
    • Events
      • Zeit - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Set ShamanLoc = (Position of Shaman)
      • Set RakeLoc[1] = (Position of RakeTarget)
      • Set RakeLoc[2] = (RakeLoc[1] offset by 5.00 towards (Angle from ShamanLoc to RakeLoc[1]) degrees)
      • Set RakeHight[1] = (Current flying height of RakeTarget)
      • Set RakeHight[2] = ((Current flying height of Target) + 100.00)
      • Unit - Move RakeTarget instantly to RakeLoc[2]
      • Animation - Change RakeTarget flying height to RakeHight[2] at 0.00
      • Custom script: call RemoveLocation(udg_ShamanLoc)
      • Custom script: call RemoveLocation(udg_RakeLoc[1])
      • Custom script: call RemoveLocation(udg_RakeLoc[2])
      • Set LoopCounter = (LoopCounter + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • IF Conditions
          • LoopCounter equal to 45
        • THEN Actions
          • Animation - Change RakeTarget flying height to (Default flying height of RakeTarget) at 0.00
          • Unit - Remove classification of Eine Luft-Einheit from RakeTarget
          • Unit - Add classification of Eine Land-Einheit to RakeTarget
          • Trigger - Turn off (This trigger)
        • ELSE Actions
 
Last edited:
Level 21
Joined
Aug 9, 2006
Messages
2,384
This should work, storm crow is a little secret in the map making buisness, classifications are just used for spells and attacks, not for making a unit fly, well, storm crow gives the unit the flag "Flying", thats a small exploit, you not even need to activate storm crow, simply add and remove and the unit is able to be handled with "set flying height"

  • Rake
    • Events
      • Einheit - A unit is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Shaman
      • (Random integer number between 1 and 10) Equal to 1
    • Actions
      • Set Shaman = (Attacking unit)
      • Set RakeTarget = (Attacked unit)
      • Set LoopCounter = 0
      • Unit - Add Storm Crow to (RakeTarget)
      • Unit - Remove Storm Crow to (RakeTarget)
      • Animation - Play Shaman's victory animation
      • Trigger - Turn on Rakemove <gen>
  • Rakemove
    • Events
      • Zeit - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Set ShamanLoc = (Position of Shaman)
      • Set RakeLoc[1] = (Position of RakeTarget)
      • Set RakeLoc[2] = (RakeLoc[1] offset by 5.00 towards (Angle from ShamanLoc to RakeLoc[1]) degrees)
      • Set RakeHight[1] = (Current flying height of RakeTarget)
      • Set RakeHight[2] = ((Current flying height of Target) + 10.00)
      • Unit - Move RakeTarget instantly to RakeLoc[2]
      • Animation - Change RakeTarget flying height to RakeHight[2] at 0.00
      • Custom script: call RemoveLocation(udg_ShamanLoc)
      • Custom script: call RemoveLocation(udg_RakeLoc[1])
      • Custom script: call RemoveLocation(udg_RakeLoc[2])
      • Set LoopCounter = (LoopCounter + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • IF Conditions
          • LoopCounter equal to 45
        • THEN Actions
          • Animation - Change RakeTarget flying height to (Default flying height of RakeTarget) at 0.00
          • Trigger - Turn off (This trigger)
        • ELSE Actions
Make the height grow not sooo big, wc3 can only handle up to 1000 height. I reduced it to prevent bugs.
 
Level 5
Joined
May 27, 2007
Messages
144
ty it works but its hase actualy no effect at +10 and at +100 it looks shity more like change instantly the height . I would like to have it more clearly not instantly pls help

Edit: Its done found right combination ^^ thx a lot for the "storm crow" tip +REP
 
Last edited:
Status
Not open for further replies.
Top