I am modifying the warp in - ability. I try to make it unable to warp in units in the sight range of enemy units.
If my marine have a sight range of 5, the enemy player can not warp in a unit in the sight range of the marine. That needs to be done in the darkness...
Only way I can think of is you make the warping in cancelable with 100% cd refund and give the units a buff that is removed after construction which auto Issue Orders to cancel the warp in if units are within range via an Enumerate Area validator.
Just an idea. Can you change the Power user behaviour/Protoss - Wapring in, of for example a Zealot, to instead add a "not in player vision" behaviour?
In other words, you can not warp in units within an enemy units sight range...
Check the Ability - Power User Behavior field of the Warpable ability and tell me. Answer is probably not and also there is no way to determine via a buff if you unit is spotted or not unless you use an overly complex combined validator using several combinations of unit type and range. Still give it a try and see if any other behaviour eg. On Creep works.
I am modifying the warp in - ability. I try to make it unable to warp in units in the sight range of enemy units.
If my marine have a sight range of 5, the enemy player can not warp in a unit in the sight range of the marine. That needs to be done in the darkness...
Any suggestions how to make this?
You need to store point of ability being cast (i guess warp is ability?), and then check is that point is visible for opposite player
Only way I can think of is you make the warping in cancelable with 100% cd refund and give the units a buff that is removed after construction which auto Issue Orders to cancel the warp in if units are within range via an Enumerate 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
@DrSuperEvil: Go
Just an idea. Can you change the Power user behaviour/Protoss - Wapring in, of for example a Zealot, to instead add a "not in player vision" behaviour?
In other words, you can not warp in units within an enemy units sight range...
Check the Ability - Power User Behavior field of the Warpable ability and tell me. Answer is probably not and also there is no way to determine via a buff if you unit is spotted or not unless you use an overly complex combined validator using several combinations of unit type and range. Still give it a try and see if any other behaviour eg. On Creep works.
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