Title says it all, I just want to create a watchtower that when you capture it doesn't provide vision of itself but of a random region I've created on the other side of the map. I'm fairly new to triggers but it would be nice if there was some way to create a general way for all of them and a straightforward way to link a tower and a region together some-where nicely encapsulated. Like creating a datastructure or something which globally links regions and towers together for this to work.
In the Data editor, edit the Xel'Naga's sight radius to 0, then make a trigger like this, you should copy the actions for every other player that you have and fill in the correct values, the actions may not exactly be correct, because I'm typing this from memory, but you probably know what I mean:
In the Data editor, edit the Xel'Naga's sight radius to 0, then make a trigger like this, you should copy the actions for every other player that you have and fill in the correct values, the actions may not exactly be correct, because I'm typing this from memory, but you probably know what I mean:
Add a while check for as long as the unit is within range of the tower.
Couldn't find a function which returns the distance between two units, couldn't find a function which returns the position of a unit either, couldn't find a square root function either.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Title says it all, I just want to create a watchtower that when you capture it doesn't provide vision of itself but of a random region I've created on the other side of the map. I'm fairly new to triggers but it would be nice if there was some way to create a general way for all of them and a straightforward way to link a tower and a region together some-where nicely encapsulated. Like creating a datastructure or something which globally links regions and towers together for this to work.
In the Data editor, edit the Xel'Naga's sight radius to 0, then make a trigger like this, you should copy the actions for every other player that you have and fill in the correct values, the actions may not exactly be correct, because I'm typing this from memory, but you probably know what I mean:
This doesn't serve to stop it if both players capture the tower at the same time though, nor does it properly mask the region again if you move away.
Add a while check for as long as the unit is within range of the tower.
Couldn't find a function which returns the distance between two units, couldn't find a function which returns the position of a unit either, couldn't find a square root function either.