I'm trying to create a trigger that is called when a Xel'Naga Tower is captured, and the tower itself auto-casts the Tower Capture interact ability, but for some reason, trying to trigger based on a unit event doesn't actually trigger when the Tower Capture event is used. How can I actually detect when a tower is captured properly?
You can make a periodic event that checks how many players have units in the range of the xel'naga tower. If only one has, you set the number of the player to an array/variable where is the xel'naga tower.
I'm trying to create a trigger that is called when a Xel'Naga Tower is captured, and the tower itself auto-casts the Tower Capture interact ability, but for some reason, trying to trigger based on a unit event doesn't actually trigger when the Tower Capture event is used. How can I actually detect when a tower is captured properly?
i can use event owner changes. this will trigger when the ownership of the tower switches between players (assuming its their unit)
another way is to run a periodic that checks all towers
another way is to create a custom event with a periodic check or what not
@SoulTaker916: Go
I'm a little confused: is there a way to figure out who "owns" a tower? If so, I haven't found it. What's the easiest way?
You can make a periodic event that checks how many players have units in the range of the xel'naga tower. If only one has, you set the number of the player to an array/variable where is the xel'naga tower.
Check out my kitbashes! Custom Campaign Initiative: Lots of great Custom Campaigns!! Check out and Support!!