What want to do is modify a weapon so that weapon will only aquire a target if the target is within an angle of the facing of the unit using it, so that if an enemy unit comes from behind, the weapon won't aquire that unit and cause the weilder of the weapon to turn around and start attacking. I'm not sure if this is possible with data and if it isn't, could someone maybe show me a trigger solution?
Have the flag that allows the weapon to initiate the attack disabled and use a buff with a Search Area effect to order the unit to attack units within the arc?
Else just adjust the aquire arc on the weapon..
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Edit: For some weird reason, it doesn't work for computer units, only my units, although the both my unit and the computer unit have the attack behavior.
The unit has a behavior that periodically applies the search effect which is launched from the caster unit and is impacted at the caster unit. On a side note, I found that if you use source unit the arc defaults to the whole map.
What want to do is modify a weapon so that weapon will only aquire a target if the target is within an angle of the facing of the unit using it, so that if an enemy unit comes from behind, the weapon won't aquire that unit and cause the weilder of the weapon to turn around and start attacking. I'm not sure if this is possible with data and if it isn't, could someone maybe show me a trigger solution?
Have the flag that allows the weapon to initiate the attack disabled and use a buff with a Search Area effect to order the unit to attack units within the arc?
Else just adjust the aquire arc on the weapon..
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 a lot, it's working fine.
Edit: For some weird reason, it doesn't work for computer units, only my units, although the both my unit and the computer unit have the attack behavior.
How you applying the search area?
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
The unit has a behavior that periodically applies the search effect which is launched from the caster unit and is impacted at the caster unit. On a side note, I found that if you use source unit the arc defaults to the whole map.
So no Create Persistent effect so you can scan to the sides?
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
Well, I just use a 45 degree arc on the search so that it would just scan a small bit in front and it seems to have worked partially.