- Joined
- Aug 16, 2007
- Messages
- 881
I've got a trigger that should detect every enemie of the item using player. But this trigger just won't work! Why? The minimap isn't pinged at all... Please take a look.
Trigger:
Trigger:
-
Enemie Detecter
-
Events
- Unit - A unit Uses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Item: |CFF82CA9CEnemie Detecter|r
-
Actions
- Set PlayerGroup[1] = (Player group((Owner of (Triggering unit))))
- Set UnitGroup = (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Picked unit)) Equal to Enemie (1)
- (Unit-type of (Picked unit)) Equal to Enemie (2)
- (Unit-type of (Picked unit)) Equal to Enemie (3)
- (Unit-type of (Picked unit)) Equal to Marine (1)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set temp_point[1] = (Position of (Picked unit))
- Cinematic - Ping minimap for PlayerGroup[1] at temp_point[1] for 2.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 100.00%)
- Custom script: call RemoveLocation(udg_temp_point[1])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_UnitGroup)
- Custom script: call DestroyForce(udg_PlayerGroup[1])
-
Events