I'd like to create a region that consists of all territory on the map that is less than 15 meters from a supply depot. Therefore, I assume, I should use triggers on Unit Progress/Unit Dies to add/remove circles of radius 15 when a supply depot is created or destroyed.
The "created" part works fine. The destroyed part doesn't. There's no "Remove Circle from Region" trigger action, and if I use "Add Circle - Negative", that works, but then when I rebuild the depot, and try to add a positive circle again, it is ignored - there's no way to get the territory back in the region.
I've tried everything I can think of. Anybody know how this can be done?
The problem is regions themselves. They can't be used for what you're looking for doing. A better way to do this would be to give the supply depots an ability that gives off an AoE buff, which in SC2, is a behavior data type. (To find out how to make one for your supply depots, the Mothership has an ability that cloaks every unit within a certain distance from it. Perfect place to start.) After you've got this ability made and assigned, it's as simple as this:
Use triggering unit to refer to the unit getting the buff. (This was kinda fun to play test. I took a Mothership and just flew it around the map, destroying everything that was supposed to get affected with the cloaking field.)
The Activate parameter is anyone getting the effect, where as Deactivate is any unit losing the effect.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am a complete newb.
I'd like to create a region that consists of all territory on the map that is less than 15 meters from a supply depot. Therefore, I assume, I should use triggers on Unit Progress/Unit Dies to add/remove circles of radius 15 when a supply depot is created or destroyed.
The "created" part works fine. The destroyed part doesn't. There's no "Remove Circle from Region" trigger action, and if I use "Add Circle - Negative", that works, but then when I rebuild the depot, and try to add a positive circle again, it is ignored - there's no way to get the territory back in the region.
I've tried everything I can think of. Anybody know how this can be done?
@azine12345: Go
The problem is regions themselves. They can't be used for what you're looking for doing. A better way to do this would be to give the supply depots an ability that gives off an AoE buff, which in SC2, is a behavior data type. (To find out how to make one for your supply depots, the Mothership has an ability that cloaks every unit within a certain distance from it. Perfect place to start.) After you've got this ability made and assigned, it's as simple as this:
Use triggering unit to refer to the unit getting the buff. (This was kinda fun to play test. I took a Mothership and just flew it around the map, destroying everything that was supposed to get affected with the cloaking field.)
The Activate parameter is anyone getting the effect, where as Deactivate is any unit losing the effect.