Under the events action of an actor, I am using the event;
selectionlocalupdate. XXunittype . start
>create
Basically, when the player selects a unit it displays the actor, I'm using a splat type actor. Kind of like when you select a seige tank in siege mode you see the ring around the tank with the range. All works splendidly until i use a validator term in the event.
I've tried both validateunit and validateplayer types and none of them seem to work. Im trying to make it only fire when you select an enemy unit, and not fire when its yours or your allied units.
Some tests I've tried;
It seems the validator always defaults to you and not a 'target' (or source etc.....) when doing playertype. and for unit it seems it always acts as 'no unit' is the unit no matter what i change the validatde:unit or validate: other unit fields. Just thinking about the logic when I've tried 'cloaked' 'enemy' 'heroic' etc.. as testers. So I'm not sure if we can link validators with these particular local fields.
I've used validators in events under actors plenty of times and usually works without a hitch, but when using the selectionlocalupdate event it seems to break the linking coorelation. Part of me thinks, well maybe the local essence of the event makes it act differently as to not trigger network traffic etc..... So maybe thats why it's broke, but even then it should work with just verifying YOUR unit. But no.....
So I feel like I've tried any combination I can think to to attempt to control when that selectionlocalupdate event fires through use of a validator but I can not seem to manage it. Anyone else ever tried this or have any insight??
Ive tried using the enumerate, with target filters to exclude player, self, and allies, search as greather than or equal to 1 count, with search as 360 arc, -1 count,search radius of 1 . Ive then tried using this as both event validator types unit and player type. And no such luck.....
Is there a reason you suggested trying it? Am I missing something?
(I've tried playing with random fields such as launch location / target in validator as source point, target point, etc....)
Why did you suggest to use an enumerate validator? Just another idea to try or what do you know about it that pertains to this situation?
Under the events action of an actor, I am using the event;
selectionlocalupdate. XXunittype . start
>createBasically, when the player selects a unit it displays the actor, I'm using a splat type actor. Kind of like when you select a seige tank in siege mode you see the ring around the tank with the range. All works splendidly until i use a validator term in the event.
I've tried both validateunit and validateplayer types and none of them seem to work. Im trying to make it only fire when you select an enemy unit, and not fire when its yours or your allied units.
Some tests I've tried; It seems the validator always defaults to you and not a 'target' (or source etc.....) when doing playertype. and for unit it seems it always acts as 'no unit' is the unit no matter what i change the validatde:unit or validate: other unit fields. Just thinking about the logic when I've tried 'cloaked' 'enemy' 'heroic' etc.. as testers. So I'm not sure if we can link validators with these particular local fields.
I've used validators in events under actors plenty of times and usually works without a hitch, but when using the selectionlocalupdate event it seems to break the linking coorelation. Part of me thinks, well maybe the local essence of the event makes it act differently as to not trigger network traffic etc..... So maybe thats why it's broke, but even then it should work with just verifying YOUR unit. But no.....
So I feel like I've tried any combination I can think to to attempt to control when that selectionlocalupdate event fires through use of a validator but I can not seem to manage it. Anyone else ever tried this or have any insight??
Use an Ennumerate Area validator.
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
Thanks for the reply / idea
Ive tried using the enumerate, with target filters to exclude player, self, and allies, search as greather than or equal to 1 count, with search as 360 arc, -1 count,search radius of 1 . Ive then tried using this as both event validator types unit and player type. And no such luck.....
Is there a reason you suggested trying it? Am I missing something?
(I've tried playing with random fields such as launch location / target in validator as source point, target point, etc....)
Why did you suggest to use an enumerate validator? Just another idea to try or what do you know about it that pertains to this situation?
Oops thought you wanted it to only show if an enemy was in range. Just use a Unit Filters type validator then. Also use the Validate Unit term.
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