How do I validate a unit's facing direction? I need to validate wether a unit is facing 0-90, 90-180, 180-270, or 270-360 degrees for use as a term in an actor event.
Use a Combine validator and two Unit Compare Field validators. Set the Validator - Field to "Facing" and Validator - Value to your angles. Using a greater than or equals and less than or equals with your angles you can create the arc of the direction is is facing when combined with an "And".
The problem witht he Unit Compare Field validators is that they only compare the static pre-defined unit data. The units I am trying to validate are able to move and turn freely as the player issues them orders. I need a validator that can validate this facing direction at run time.
How do I validate a unit's facing direction? I need to validate wether a unit is facing 0-90, 90-180, 180-270, or 270-360 degrees for use as a term in an actor event.
Thanks in advance.
Use a Combine validator and two Unit Compare Field validators. Set the Validator - Field to "Facing" and Validator - Value to your angles. Using a greater than or equals and less than or equals with your angles you can create the arc of the direction is is facing when combined with an "And".
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
@DrSuperEvil: Go
Hey, thanks for the suggestion!
The problem witht he Unit Compare Field validators is that they only compare the static pre-defined unit data. The units I am trying to validate are able to move and turn freely as the player issues them orders. I need a validator that can validate this facing direction at run time.
Use a Location Arc validator with the Target - Location - Effect being set to persistent effects created in the map corners?
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