• 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.

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
582
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