This problem seems to be the key component in several interesting arena-style abilities I'm interested in. The core component is that a "point" is created (visible or invisible) which manintains its distance to, and orientation relative to a unit which moves about the map.
I'd like to be able to create fixed points that respect unit orientation (that is to say, when the unit turns, the point will move, rotating around a long axis, to remain on the same side of the unit as it previously was), and fixed points that do not respect unit orientation (meaning that a point SW of a unit will always be SW, regardless of how the unit rotates)
Let me give you a few examples. These should give a bit more perspective with respect to Data.
Fixed point, Respecting unit orientation: Attacks from behind deal more damage
Each unit will have a buff named [vulneravle]. This buff[vulnerable] does 2 things: 1) it creates a persistent effect, located 2 units behind the unit owning the buff[vulnerable]; 2) it has a damage response effect that recognises the whether any source of damage comes from a unit with a second buff[deadly]. Several times a second, the create persistent effect will run a search area effect (radius 2), and that search area effect will apply a buff named [deadly].
The net effect of all this is that any unit in melee range behind the unit with buff[vulnerable] will gain the buff[deadly]. units with buff[deadly] will deal double damage to units with buff[vulnerable].
While starcraft has little use for this type of effect, arena style maps do.
Fixed Point, Without regard to unit orientation: Shield
Let's say we have a unit. We'll name him "Braum". We want to give him an ability named "Unbreakable". When Unbreakable is cast, in a target direction, it creates 5 fixed points (create persistent) in an arc, facing the direction the ability was cast. several times a second, each of these fixed points runs a search area in a small radius, and deals lethal damage to all missiles found in the area(s). These persistent points last for several seconds. As Braum walks around, these points should always face the same direction - if he casts the ability to block attacks from the West, the shield should not rotate north and Braum walks south.
I've created this type of ability before, but the "shield" of 5 points is created at the target point, and just rotates in accordance with the casters movements. it fails to stay with the caster, and it fails to maintain its origional orientation.
..............
Thankyou in advance for your help. I can provide more information as needed.
This problem seems to be the key component in several interesting arena-style abilities I'm interested in. The core component is that a "point" is created (visible or invisible) which manintains its distance to, and orientation relative to a unit which moves about the map.
I'd like to be able to create fixed points that respect unit orientation (that is to say, when the unit turns, the point will move, rotating around a long axis, to remain on the same side of the unit as it previously was), and fixed points that do not respect unit orientation (meaning that a point SW of a unit will always be SW, regardless of how the unit rotates)
Let me give you a few examples. These should give a bit more perspective with respect to Data.
Fixed point, Respecting unit orientation: Attacks from behind deal more damage
Each unit will have a buff named [vulneravle]. This buff[vulnerable] does 2 things: 1) it creates a persistent effect, located 2 units behind the unit owning the buff[vulnerable]; 2) it has a damage response effect that recognises the whether any source of damage comes from a unit with a second buff[deadly]. Several times a second, the create persistent effect will run a search area effect (radius 2), and that search area effect will apply a buff named [deadly].
The net effect of all this is that any unit in melee range behind the unit with buff[vulnerable] will gain the buff[deadly]. units with buff[deadly] will deal double damage to units with buff[vulnerable].
While starcraft has little use for this type of effect, arena style maps do.
Fixed Point, Without regard to unit orientation: Shield
Let's say we have a unit. We'll name him "Braum". We want to give him an ability named "Unbreakable". When Unbreakable is cast, in a target direction, it creates 5 fixed points (create persistent) in an arc, facing the direction the ability was cast. several times a second, each of these fixed points runs a search area in a small radius, and deals lethal damage to all missiles found in the area(s). These persistent points last for several seconds. As Braum walks around, these points should always face the same direction - if he casts the ability to block attacks from the West, the shield should not rotate north and Braum walks south.
I've created this type of ability before, but the "shield" of 5 points is created at the target point, and just rotates in accordance with the casters movements. it fails to stay with the caster, and it fails to maintain its origional orientation.
..............
Thankyou in advance for your help. I can provide more information as needed.
A what does a what now? You saying keeping a specific distance from a target point? That could be done with a Location range validator.
Ok sounds like a Create Persistent effects with offsets are involved.
Check how my demo map for turrets at angles works. A similar method can be modified for rear attacks.
Alternatively you could use a Location Arc validator so that the target unit is not facing the attacking unit within so many degrees.
I remember someone back in 2011 had a perfected back attack system as a demo map.
So you are asking for the Target: Location - Offset - Start - Value field?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg