Hello everyone, here's the situation: I've made a structure that can call an Ion cannon attack. The ion cannon beam can be moved, so I want the player to automatically select it once it appears. Here's the trigger:
[EDIT]
I also tried with a debug message and, when the beam appears ingame, it gives me a proper message, but the beam isn't selected yet. I also tried to store the beam owner as a variable, but it didn't function. Here is what I've done to the actions:
By the way, I forgot to say that when the beam appears, my selection gets cleared, so I deselect the Ion cannon building... but the beam isn't selected yet... T_T
-
Ion cannon selection
-

Events
-


Unit - A unit enters (Entire map)
-
-

Conditions
-


(Unit type of (Entering unit)) equals Ion cannon beam
-
-

Actions
-


Wait 0.25 seconds
-


Selection - Select (Entering unit) for (Owner of (Entering unit))
-
-
[EDIT]
I also tried with a debug message and, when the beam appears ingame, it gives me a proper message, but the beam isn't selected yet. I also tried to store the beam owner as a variable, but it didn't function. Here is what I've done to the actions:
-
Actions
-

Wait 0.25 seconds
-

Set IonCannonBeamOwner = (Owner of (Entering unit))
-

Selection - Select (Entering unit) for IonCannonBeamOwner
-

Game - Display for (All players) for 1.00 seconds the text: THE BEAM SHOULD BE SELECTED NOW
-
By the way, I forgot to say that when the beam appears, my selection gets cleared, so I deselect the Ion cannon building... but the beam isn't selected yet... T_T
Last edited:




