I assume you are using a Location Vision validator. You are aware that hostile only refers to player 15 right?
I would use an Ennumerate Area validator that uses the Target Has Vision Of Source validator. That way the enemy filter is applied by the enumerate area and the targets of that search are then validated for the vision of the source/caster unit.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I did some more testing and it seems like the Location Vision validators, including "Target has vision of source", can only handle points and not units.
A Unit Filter checking visibility might work but it always uses the caster as a point of reference. Is there a way to make it's parent the target unit instead?
Using an effect to determine what unit to use for reference would work but that would require a Search Area effect that applies a Set effect to a unit.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
How do you create a validator that returns true if no enemy unit has vision of the caster unit. I currently have:
<CValidatorLocationVision id="EnemyVisionCheck">
<WhichLocation Value="CasterUnit"/>
<WhichPlayer Value="Hostile"/>
<Find value="0"/>
</CValidatorLocationVision>
but it's not working.
I assume you are using a Location Vision validator. You are aware that hostile only refers to player 15 right?
I would use an Ennumerate Area validator that uses the Target Has Vision Of Source validator. That way the enemy filter is applied by the enumerate area and the targets of that search are then validated for the vision of the source/caster unit.
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
I completely forgot about the hostile thing. thanks for the help.
I did some more testing and it seems like the Location Vision validators, including "Target has vision of source", can only handle points and not units.
A Unit Filter checking visibility might work but it always uses the caster as a point of reference. Is there a way to make it's parent the target unit instead?
Using an effect to determine what unit to use for reference would work but that would require a Search Area effect that applies a Set effect to a unit.
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