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?
Scripting: Turn itself into other unit
Moderator: Moderators
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
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.
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.
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
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.
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.