Page 1 of 1

Scripting: Turn itself into other unit

Posted: 22 Oct 2006, 10:27
by PauloMorfeo
I want for a unit, after x time of existance or after x time of game, to turn itself into another. Is that possible without user interaction?

I know that something could be arranged by having that unit have a build menu but that would require the user to click the order menu...

I'm thinking of something like:
After x time (either of existance either of gameplay),
Instantly builds a unit inside itself
And explodes for no damage

Possible?

Posted: 22 Oct 2006, 11:09
by Guessmyname
No. But you can have it 'transform' - hide the old pieces, show the new 'transformed' pieces, alter the weapons, alter the speed and the health with the armour bonus thing...

you get the idea. Start a script in create that, after a sleep for how ever long, will transform the unit

Posted: 22 Oct 2006, 11:09
by rattle
No, not in the way you think. The unit has to contain both models and the transformation is done by script. You do that in the build up process by the way, so human appears and transforms into alien (I guess) when progress hits 50% or 75% for instance.

About the explosion: yes, emit-sfx can casts weapons from empty objects. They will detonate then at given object. Also you can cast the explosion generator directly using same command thus you don't have to worry about damage since it's completely visual.

Posted: 22 Oct 2006, 13:13
by PauloMorfeo
Well, that wouldn't do...

I wanted a building to transform into a unit. By the way you imagine possible, i would be stuck with all the stats of the older building unit...

Imagine a Coocoon which later spawns a unit, like in the Starcrap Zerg.
Well, it wasn't for a coocoon, it was for something in TLL, but the idea is prety much the same.

Posted: 22 Oct 2006, 13:33
by Acidd_UK
If the building was scripted to build the unit (like a regular factory) and then self destructed for zero damage and no wreckage etc, maybe that's possible?

Posted: 22 Oct 2006, 19:25
by KDR_11k
Nope, not possible. I requested metamorphosis quite some time ago.

Posted: 22 Oct 2006, 20:19
by Neddie
I've been working on some concepts for that, but haven't found an effective way to do it in Spring wither.

Applications include...

Pilot eject from Mechs in Battletech.
Psychic Manifestations in an Unnamed Mod.
Personnel leaving destroyed Bunkers.