sarkurayboy
New Member
- Reaction score
- 7
My meat hook since to hook Buildings , i dont it to hook any buildings. Can anyone help ?? here the trigger.
#
#
#
Help plz
#
Code:
MH Cast
E
Unit- A unit begins casting an abillity
C
(Ability being cast) Equal to Meat Hook
A
Set MH_Level = (Level of Meat Hook ) for (Triggering unit))
Set Mh_Angle = ( Angle from ( Position of Triggering unit )) to ( Target point of ability being cast))
Set MH_Unit(1) = Triggering Unit
Trigger - Turn on MH Extend #
#
Code:
MH Extend-
E
Time - Every 0.04 seconds of game time
A
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MH_Links Less than (5 + (6 x MH_Level))
Then - Actions
Set MH_Links = (MH_Links + 1)
Unit - Create 1 Meat Hook Dummy for (Owner of MH_Unit[1]) at ((Position of MH_Unit[1]) offset by (Real((40 x MH_Links))) towards MH_Angle degrees) facing MH_Angle degrees
Set MH_Link[MH_Links] = (Last created unit)
Set Temp_Group = (Units within 115.00 of (Position of MH_Link[MH_Links]) matching (((Matching unit) is alive) Equal to True))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MH_Links Greater than 3
Then - Actions
Set MH_Unit[2] = (Random unit from Temp_Group)
Custom script: call DestroyGroup(udg_Temp_Group)
Custom script: set udg_Temp_Group = null
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(MH_Unit[2] is A structure) Equal to False
(MH_Unit[2] belongs to an ally of (Owner of MH_Unit[1])) Equal to False
Then - Actions
Unit - Cause MH_Unit[1] to damage MH_Unit[2], dealing (100.00 x (Real(MH_Level))) damage of attack type Spells and damage type Normal
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MH_Unit[2] Not equal to No unit
Then - Actions
Trigger - Turn on MH Retract <gen>
Trigger - Turn off (This trigger)
Else - Actions
Else - Actions
Trigger - Turn on MH Retract <gen>
Trigger - Turn off (This trigger)
#
Code:
MH Retract
E
Time - Every 0.04 seconds of game time
A
Actions
Unit - Move MH_Unit[2] instantly to (Position of MH_Link[MH_Links])
Unit - Remove MH_Link[MH_Links] from the game
Set MH_Links = (MH_Links - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MH_Links Equal to 0
Then - Actions
Custom script: set udg_MH_Unit[2] = null
Custom script: set udg_MH_Unit[1] = null
Trigger - Turn off (This trigger)
Else - Actions #
Help plz