- Joined
- Nov 18, 2015
- Messages
- 41
Somewhere somehow I've got some issues. The trigger will run through, however the problem I'm having is that it won't pick up the unit type of the target unit.

-
HS Select
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Hero Select
-
-
Actions
-
Set tempP = (Owner of (Casting unit))
-
Player Group - Add tempP to tempPGroup
-
Set tempInt = (Player number of tempP)
-
Set tempLoc = (Random point in hr rev1 <gen>)
-
Unit - Explode (Casting unit)
-
Unit - Create 1 (Unit-type of (Target unit of ability being cast)) for tempP at tempLoc facing 270.00 degrees
-
Set p_hero[tempInt] = (Last created unit)
-
Selection - Select (Last created unit) for tempP
-
Cinematic - Clear the screen of text messages for tempPGroup
-
Game - Display to tempPGroup for 12.00 seconds the text: (You've selected the |cffffcc00 + ((String((Unit-type of (Target unit of ability being cast)))) + |r. To repick re-enter the selection area.))
-
Camera - Pan camera for tempP to tempLoc over 0.00 seconds
-
Special Effect - Create a special effect at tempLoc using Abilities\Spells\Other\Awaken\Awaken.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set hr_reviveLoc[tempInt] = tempLoc
-
Custom script: call RemoveLocation(udg_tempLoc)
-
Custom script: call DestroyForce(udg_tempPGroup)
-
-