PDA

View Full Version : Unbreakable code and unit DEATH


RedSarge
11-28-2007, 11:42 PM
Hi, I have a modded unit in Starcraft that fires a series of cannons like a special ability. You select the target with the Titan and it fires 5 shock cannon (also plays frames) blasts that do high damage.... however! If the Titan dies while firing of this special move (before the five shots have completed) it freezes the game. Can someone please help? What opcodes am I using that might cause this? The Terran Valkyrie doesn't crash the game when it dies halfway thru an attack.

ShadowFlare
11-29-2007, 1:49 AM
Are you setting the direction the unit is facing to 0 at the very beginning of the death animation? Most units have that. This is to make sure you are using the correct part of the death animation if your death animation has only a single direction the unit will face for it. You could have a death animation in your GRP where the unit is still facing the direction it was last facing, but you won't see any examples of that in SC.

RedSarge
11-29-2007, 10:20 AM
It seems that the death animation is good and proper as my iscrpit isn't asking for any frame/facing in when the unit dies.

Unit iscript:
Play Sound FX ????
Place Active Overlay ??? at offset 0
Wait 3 ticks
Remove unit

The unit my TITAN is based off of is the Terran Battlecruiser which as you know, used to fly before I grounded it. Could this be the problem?