Hi i had an idea to create a normal simply 'Control' ability to control for few second enemy hero. It's worked but there was a bad thing... i can give someone his items ;/
I tried to set his items to array variables -> delete -> and after control create again but it don't create all of his items, only few ;(
I tried to set his items to array variables -> delete -> and after control create again but it don't create all of his items, only few ;(
-
Trigger
-
Events
-
Unit - Unit using ability
-
-
Conditions
-
(Ability being cast) equal to Control
-
-
Actions
-
Set Target = (target unit of ability being cast)
-
Set Owner = (Owner of (Triggering unit))
-
Set Target_Owner = (Owner of (Target))
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Set Item[(Integer A)] = (Item-type of (Item carried by Target in slot (Integer A)))
-
Item - Remove (Item carried by Target of type Item[(Integer A)])
-
-
-
Wait 1.00 seconds
-
Unit - Hide (Triggering unit)
-
Unit - Change ownership of Target to Owner
-
Wait (10.00 + (5.00 x (Real((Level of (Ability being cast) for (Triggering unit)))))) seconds
-
Unit - Unhide (Triggering unit)
-
Unit - Change ownership of Target to Target_Owner
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Hero - Create Item[(Integer A)] and give it to Target
-
-
-
-