So I am making this cinematic where this ghost runs in and snipes 4 hydras, however it does not seem to work. I made it so that when he reaches the point near the hydras he snipes all units in that region through:
Unit group - Pick each unit in region that is enemy with player 1.
Unit - Order Unit to snipe [Picked Unit]
Wait 1 game second.
Now it does this just fine except that it skips the last one it seems, even when adding or removing hydras the last one always seems to remain, what did I do wrong and how do I fix this, been working on it for hours now and it's starting to make my head hurt.
I thought it had something to do with that so I went with 'after existing orders' but that didnt help, gonna give your way a try when I am done eating ^_^
Wow never thought that would've worked but it did! Thanks a bunch, another question I had was why isn't the sound playing I told it to? Like I told it to play this Nova voicetrack and the trigger runs (checked it with a text message) but there's no sound... -.-
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I am making this cinematic where this ghost runs in and snipes 4 hydras, however it does not seem to work. I made it so that when he reaches the point near the hydras he snipes all units in that region through:
Unit group - Pick each unit in region that is enemy with player 1. Unit - Order Unit to snipe [Picked Unit] Wait 1 game second.
Now it does this just fine except that it skips the last one it seems, even when adding or removing hydras the last one always seems to remain, what did I do wrong and how do I fix this, been working on it for hours now and it's starting to make my head hurt.
@Tiens: Go
I would do this by using a while command
youll need a temp var for storing the current unit you want killed
declare tempunit var
Unit group pick each unit you want to kill{
set tempunit = pickedunit
order ghost to snipe tempunit
while(Unit is Alive(tempunit){wait .5 seconds}
}
This should make it so the it doesnt give the next snipe order untill the current picked unit is dead
I thought it had something to do with that so I went with 'after existing orders' but that didnt help, gonna give your way a try when I am done eating ^_^
Wow never thought that would've worked but it did! Thanks a bunch, another question I had was why isn't the sound playing I told it to? Like I told it to play this Nova voicetrack and the trigger runs (checked it with a text message) but there's no sound... -.-