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

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?
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 :-)
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.
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.
Post Reply

Return to “Conflict Terra”