I'm pretty sure you will just need a "Wait for Condition" action. Basically, you should do this:
1) warp a unit
2) wait until this unit is fully warped
3) issue order to the warped unit
If I understood well, for now you just have steps 1 and 3 in your trigger. So what you seek is to wait before the unit is entirely warped. In that case, just add the following action in between:
Wait for (Conditions) checking every 1 second
Unit (last created unit) is under construction = FALSE
(alternatively, you can check for "Unit progress (percent)" > 99%... This condition will check the production queue of the warp gate, while the other checks if the unit is done)
I don't know why your unit is dying while warping though, they usually can't move when they warp so I don't see why it would be cancelled (unless of course the pylon gets destroyed before the warping process finished). Be sure to check you don't have a trigger killing units somewhere, destroying your units when it shouldn't.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm pretty sure you will just need a "Wait for Condition" action. Basically, you should do this:
1) warp a unit
2) wait until this unit is fully warped
3) issue order to the warped unit
If I understood well, for now you just have steps 1 and 3 in your trigger. So what you seek is to wait before the unit is entirely warped. In that case, just add the following action in between:
Wait for (Conditions) checking every 1 second
Unit (last created unit) is under construction = FALSE
(alternatively, you can check for "Unit progress (percent)" > 99%... This condition will check the production queue of the warp gate, while the other checks if the unit is done)
I don't know why your unit is dying while warping though, they usually can't move when they warp so I don't see why it would be cancelled (unless of course the pylon gets destroyed before the warping process finished). Be sure to check you don't have a trigger killing units somewhere, destroying your units when it shouldn't.