I am trying to validate that the target of an ability is targeting the caster. I can't seem to find any way to do this is in the data editor or in the trigger editor.
I am specifically wanting a pickup item to auto cast on (like the health pickups) but only when the unit that gets close is targeting it.
Many thanks in advance.
When a unit moves over an auto cast pickup, such as the health ones available in the editor, they automatically cast themselves onto the unit. I am wanting this to happen but only if the unit that moves over the pickup is currently moving toward the pickup with the pickup as the target unit.
So, I want to validate that the target's (target of the pickup's ability) current order is to move to the caster (the pickup)
- - RED replied while I was uploading the photo. Thats exactly what I want :) I want to validate that the move command of the hero is targeting the item.
Any ideas? I have made a very rough trigger version using behaviours but it would be nice to use the data editor to validate.
In case no other suggestions are made, I'm currently applying a behaviour when the pickup is targeted by a smart command and the pickup then validates that the hero has that behaviour. So if he is just walking past he wont pick it up.
The behaviour is also removed if the hero is issued a smart command to somewhere/something other than the pickup.
This is kinda awkward though due to there being 10 pickups of different types :/
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am trying to validate that the target of an ability is targeting the caster. I can't seem to find any way to do this is in the data editor or in the trigger editor.
I am specifically wanting a pickup item to auto cast on (like the health pickups) but only when the unit that gets close is targeting it. Many thanks in advance.
Could you please rephrase that?
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 think he wants item X to be automatically picked up by his hero; if he's in range AND targeting(selecting?) item X.
When a unit moves over an auto cast pickup, such as the health ones available in the editor, they automatically cast themselves onto the unit. I am wanting this to happen but only if the unit that moves over the pickup is currently moving toward the pickup with the pickup as the target unit. So, I want to validate that the target's (target of the pickup's ability) current order is to move to the caster (the pickup)
- - RED replied while I was uploading the photo. Thats exactly what I want :) I want to validate that the move command of the hero is targeting the item.
Any ideas? I have made a very rough trigger version using behaviours but it would be nice to use the data editor to validate.
In case no other suggestions are made, I'm currently applying a behaviour when the pickup is targeted by a smart command and the pickup then validates that the hero has that behaviour. So if he is just walking past he wont pick it up. The behaviour is also removed if the hero is issued a smart command to somewhere/something other than the pickup. This is kinda awkward though due to there being 10 pickups of different types :/