Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Ahh ok
I don't know what level of triggering you are at but here is the basics
A unit starts the effect of an ability
Ability equal to force staff push
Add unit to unit group
Every 0.0X seconds
Pick every unit in group and
Save target unit
Save position of target
Set new position to position of target offset by x towards facing of target
Custom script: call SetUnitX(target,GetLocationX(new_position))
Custom script: call SetUnitY(target,GetLocationY(new_position))
Using the set Unit X/Y is better than the GUI move unit as it does not stop channel or orders.
Ahh ok
I don't know what level of triggering you are at but here is the basics
A unit starts the effect of an ability
Ability equal to force staff push
Add unit to unit group
Every 0.0X seconds
Pick every unit in group and
Save target unit
Save position of target
Set new position to position of target offset by x towards facing of target
Custom script: call SetUnitX(target,GetLocationX(new_position))
Custom script: call SetUnitY(target,GetLocationY(new_position))
Using the set Unit X/Y is better than the GUI move unit as it does not stop channel or orders.
for naming convention I believe blizzard had followed the coding law which is to not include things like "_" or "*" as the first letter of the naming as they mess with condition checking at the CPU's end.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.