I recently decided to start dabbling again in the SC2 editor, and upon looking through the validators I noticed one in particular (that appears to be new) that might actually help me with a space flight simulator I've been stuck on. The validator in question is the "Unit Compare Height and Z". Upon testing it a bit I found that unlike the "Unit Compare Field" validator, this validator is dynamic and will take into account changes in unit height throughout a game (particularly useful for weapon target acquisition in a space combat sim). That being said, I'm not really understanding some of the parameters for this validator and hope some of you could give me some insight into them.
Most notably, while I can get a weapon to aquire targets above or below a target dynamically using the "Compare" greater than/less than values (in conjunction with the "Other Unit", I can't seem to dictate how much further below or above it can acquire targets. Implicitly, I would assume the "Caster Add" or "Target Add" fields would be there for that, but no matter what I input as a value it seems to ubiquitously target ALL targets above OR below a target. Does anyone have insight into how to interpret the fields in the validator?
from my general sc2 understanding you would need to use a combi validator with 3 validators to specify a lower and a upper border.
maybe it works with 2 by using CasterAdd as upper border and say less than + the border for the lower value.
This is one of the big unknowns. I assume the add fields are the amount of height added or subtracted from the current height that is used for the comparison function. From your set up I can only assume that if the caster height -100 (just to remind you phoenix anti grav only causes a change of 3.75) is greater than or equals to the target height it would return true.
If you do figure out how this validator works please add your findings to the wiki.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Alright I'm actually pumped about this, I finally have an easy way to validate weapons targeting based on height. It took some messing around and quite frankly, I'm still not sure what most of the fields do exactly, but what I can confirm for sure is that it validates unit height dynamically over the course of the game, which is perfect for a space combat shooter. With a few combine validators I can get a weapon to target units within a specified range, and with a function validator I could make a nearly spherical 3D acquisition space.
Hello,
I recently decided to start dabbling again in the SC2 editor, and upon looking through the validators I noticed one in particular (that appears to be new) that might actually help me with a space flight simulator I've been stuck on. The validator in question is the "Unit Compare Height and Z". Upon testing it a bit I found that unlike the "Unit Compare Field" validator, this validator is dynamic and will take into account changes in unit height throughout a game (particularly useful for weapon target acquisition in a space combat sim). That being said, I'm not really understanding some of the parameters for this validator and hope some of you could give me some insight into them.
Most notably, while I can get a weapon to aquire targets above or below a target dynamically using the "Compare" greater than/less than values (in conjunction with the "Other Unit", I can't seem to dictate how much further below or above it can acquire targets. Implicitly, I would assume the "Caster Add" or "Target Add" fields would be there for that, but no matter what I input as a value it seems to ubiquitously target ALL targets above OR below a target. Does anyone have insight into how to interpret the fields in the validator?
from my general sc2 understanding you would need to use a combi validator with 3 validators to specify a lower and a upper border. maybe it works with 2 by using CasterAdd as upper border and say less than + the border for the lower value.
This is one of the big unknowns. I assume the add fields are the amount of height added or subtracted from the current height that is used for the comparison function. From your set up I can only assume that if the caster height -100 (just to remind you phoenix anti grav only causes a change of 3.75) is greater than or equals to the target height it would return true.
If you do figure out how this validator works please add your findings to the wiki.
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
Alright I'm actually pumped about this, I finally have an easy way to validate weapons targeting based on height. It took some messing around and quite frankly, I'm still not sure what most of the fields do exactly, but what I can confirm for sure is that it validates unit height dynamically over the course of the game, which is perfect for a space combat shooter. With a few combine validators I can get a weapon to target units within a specified range, and with a function validator I could make a nearly spherical 3D acquisition space.
Looks pretty impressive. Still would like a demo map showing the setup of the validators.
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