D
danhel
Guest
Code:
Shield of Necromancy
Events
Unit - A unit Is attacked
Conditions
((Attacked unit) has an item of type Shield of Necromancy) Equal to True
Actions
Trigger - Turn off (This trigger)
Set Shield_of_Necromancy_Attacked = (Position of (Attacked unit))
Set Shield_of_Necromancy_Old = (Position of (Attacking unit))
Set Shield_of_Necromancy_New = (Shield_of_Necromancy_Attacked offset by 500.00 towards (Angle from Shield_of_Necromancy_Attacked to Shield_of_Necromancy_Old) degrees)
Player Group - Add (Owner of (Attacking unit)) to Shield_of_Necromancy_PG
Cinematic - Disable user control for Shield_of_Necromancy_PG
Unit - Order (Attacking unit) to Move To Shield_of_Necromancy_New
Wait 1.50 seconds
Cinematic - Enable user control for Shield_of_Necromancy_PG
Player Group - Remove all players from Shield_of_Necromancy_PG
Custom script: call RemoveLocation (udg_Shield_of_Necromancy_Attacked)
Custom script: call RemoveLocation (udg_Shield_of_Necromancy_Old)
Custom script: call RemoveLocation (udg_Shield_of_Necromancy_New)
Trigger - Turn on (This trigger)
When a unit attacks the hero with the item (i didnt set integer chance stuff yet) it should disable the control of the owner of attacked hero, and order the attacking unit to move backwards.... But now it disables the control, and stop the unit attacking the target and nothing more the unit doesnt, move, whats the problem? thaanxa