I have a ship that blows up. When it blows up, I replace it with a "locust" version of itself, and play the locust's death animation. I order it to lower it's flying height as well. When it reaches the ground I pause the unit's animation and the unit itself. This makes it look like the ship crashes into the ground and leaves behind a wreckage.
Everything works great when you kill the ship and watch it onscreen. But when the ship dies off screen, it appears to animate differently..which is to say it doesn't animate at all. The ship can be seen near the ground (i.e. the "lower unit's flying height" action works correctly) but the ship is not in the middle of its death animation. Instead it appears to be paused in the middle of its stand animation.
I seem to recall having this trouble before, when I order a unit to play an animation, but since no one can see it it doesn't work.
Does anyone have any ideas on how to fix this? If I can't do it, is there a way to detect if a unit is on the screen of a player? Keep in mind the player's camera could be different depending on what he's doing.
Everything works great when you kill the ship and watch it onscreen. But when the ship dies off screen, it appears to animate differently..which is to say it doesn't animate at all. The ship can be seen near the ground (i.e. the "lower unit's flying height" action works correctly) but the ship is not in the middle of its death animation. Instead it appears to be paused in the middle of its stand animation.
I seem to recall having this trouble before, when I order a unit to play an animation, but since no one can see it it doesn't work.
Does anyone have any ideas on how to fix this? If I can't do it, is there a way to detect if a unit is on the screen of a player? Keep in mind the player's camera could be different depending on what he's doing.