Transports call killed() when unloading

Transports call killed() when unloading

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Transports call killed() when unloading

Post by Forboding Angel »

Why is that?

It has been happening since 89 (that I know of). As soon as the unit is unloaded, killed is called. It's like the transport unit is being replaced after unload?

If that is the case, it's just a matter of the wrong function being called upon unload (as in, you want to destroy the unit but not play the death animation).

The only time I noticed it was when I changed evo's transports over to break apart and play a ceg on the parts.

Code: Select all

Killed(severity, corpsetype) // how it explodes 
{ 
	corpsetype = 1; 
	explode base type EXPLODE_ON_HIT;
	explode engine1 type EXPLODE_ON_HIT;
	explode engine2 type EXPLODE_ON_HIT;
	explode wingsfront type EXPLODE_ON_HIT;
	explode wingsrear type EXPLODE_ON_HIT;
	explode tail type EXPLODE_ON_HIT;
} 
Post Reply

Return to “Help & Bugs”