When a unit morphs, is it still the same unit (same UnitID)?

When a unit morphs, is it still the same unit (same UnitID)?

A fresh perspective on battle for control of Earth, brought to you by Sanada and Snoop.

Moderators: Moderators, Content Developer, Moderators, Content Developer

Post Reply
yanom
Posts: 323
Joined: 10 Jul 2009, 23:34

When a unit morphs, is it still the same unit (same UnitID)?

Post by yanom »

When a unit like a cruiser or drone engineer morphs, is it still the same unitID afterwards, or does the morph destroy the old unit and create a new one?
0 x

User avatar
SanadaUjiosan
Conflict Terra Developer
Posts: 907
Joined: 21 Jan 2010, 06:21

Re: When a unit morphs, is it still the same unit (same UnitID)?

Post by SanadaUjiosan »

I have no idea, but:

I think that is what happens; the old unit is destroyed and the new one is created.

Just a pro-tip, you should probably put general questions like this in Lua Scripts since more (knowledgeable) people look in there and fewer such people look here...

Just some friendly advice :-)
0 x

SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: When a unit morphs, is it still the same unit (same UnitID)?

Post by SirMaverick »

yanom wrote:When a unit like a cruiser or drone engineer morphs, is it still the same unitID afterwards, or does the morph destroy the old unit and create a new one?
If you use the gadget from CA/ZK then a new unit is created, hence it has a different unitid.
0 x

yanom
Posts: 323
Joined: 10 Jul 2009, 23:34

Re: When a unit morphs, is it still the same unit (same UnitID)?

Post by yanom »

SirMaverick wrote:
yanom wrote:When a unit like a cruiser or drone engineer morphs, is it still the same unitID afterwards, or does the morph destroy the old unit and create a new one?
If you use the gadget from CA/ZK then a new unit is created, hence it has a different unitid.
ok thanks.

I'm debating designs for YMSAI. The current unit production code is working but horribad. Needs cleaning up, probably a total rewrite.
0 x

Post Reply

Return to “Conflict Terra”