• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Meat Hook problem.

Status
Not open for further replies.
Level 4
Joined
Oct 20, 2011
Messages
129
Use these line to change unit position instead of Unit - Move unit to a location.
  • Custom script: call SetUnitX (udg_MeatHook_SnagUnit, GetLocationX (udg_MeatHook_SnagLoc[2]))
  • Custom script: call SetUnitY (udg_MeatHook_SnagUnit, GetLocationY (udg_MeatHook_SnagLoc[2]))
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
CreepType needs 12
CreepLoc needs 6
MeatHook_Dummy needs... hm idk but i seted it to 5 and works good
MeatHook_Group needs 2
MeatHook_Loc needs 3
MeatHook_SnagLock needs 2

And I think it must hook the target and bring it ot the hero if he moves instead of the cast point but im nots sure (thats what i remember from playing pudge wars)
 
Level 10
Joined
Mar 17, 2012
Messages
579
ForeverBeADragon, could You enter current triggere's names, because I almost don't orient in this trigger ^^

nedio95, maybe it would work on this map, byt this is only a platform, this ability lives in another map)))

Maker, where can I find "collision off" command(function)?
 
Last edited by a moderator:
Level 4
Joined
Oct 20, 2011
Messages
129
There is an Edit Button. Don't triple post!
edit.gif

  • RetractHook
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set MeatHook_SnagLoc[1] = (Position of MeatHook_SnagUnit)
      • Set MeatHook_SnagLoc[2] = (MeatHook_SnagLoc[1] offset by 40.00 towards (Angle from MeatHook_SnagLoc[1] to MeatHook_Loc[1]) degrees)
      • Set MeatHook_Number = (MeatHook_Number - 1)
      • Unit - Remove MeatHook_Dummy[MeatHook_Number] from the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer((Distance between MeatHook_Loc[1] and MeatHook_SnagLoc[1]))) Greater than 85
        • Then - Actions
          • Custom script: call SetUnitX (udg_MeatHook_SnagUnit, GetLocationX (udg_MeatHook_SnagLoc[2]))
          • Custom script: call SetUnitY (udg_MeatHook_SnagUnit, GetLocationY (udg_MeatHook_SnagLoc[2]))
        • Else - Actions
      • Custom script: call RemoveLocation(udg_MeatHook_SnagLoc[1])
      • Custom script: call RemoveLocation(udg_MeatHook_SnagLoc[2])
 
Status
Not open for further replies.
Top