sorry about editing my post but I found a better way without killing the unit
Trigger |
Description: |
Detecting when a ghost is cloakd |
|
Players: |
¤ Player x |
Conditions: |
¤ Always |
Actions: |
¤ Issue order to 1 ling at "ling starts here" attack to "attack to here if uncloakd"
|
¤ Move quantity all lings at "attack to here if uncloakd" to "ling starts here"
|
¤ Preserve trigger |
Trigger |
Players: |
¤ Player x |
Conditions: |
¤ player x brings quantity 1 ling to "if zergling comes here it means its attacking the uncloakd ghost" |
Actions: |
¤ Display for corrent player "THE GHOST IS UNCLOAKED!!!"
|
¤ Preserve Trigger |
Trigger |
Players: |
¤ Player x |
Conditions: |
¤ Player x brings quantity 1 ling to "attack to here if uncloakd" |
Actions: |
¤ display for current player "THE GHOST IS CLOAKED!!!"
|
¤ Preserve Trigger |
just make sure the ghost has enough health that it cannot die the whole game and it would look better if the unit has the extended health trick where it doesnt display health and looks invincible
[right][snapback]298831[/snapback][/right]
that will work only if you want to detect cloaking but if you want to use it as in a game it won't i mean if you cloak the enemy can easily move into you even if he is not attacking you he can still bring his units to your and boom end of detection
and if you send them to attack the unit will still run until it gets to the destination where it realizes there is nothing in there (cloaked)