Scripting: Turn itself into other unit

Scripting: Turn itself into other unit

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Scripting: Turn itself into other unit

Post 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?
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post 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
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post 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.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post 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.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Post 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?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Nope, not possible. I requested metamorphosis quite some time ago.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post 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.
Post Reply

Return to “Game Development”