Page 1 of 1
Flying subs
Posted: 22 May 2012, 19:46
by Beherith
Is it possible to make an aircraft unit that has a toggleable state which tells it to travel underwater if it over water? Think flying subs in X-COM 2.
Re: Flying subs
Posted: 22 May 2012, 19:50
by smoth
yer gonna get a "lua it" response. brace for impact.
Re: Flying subs
Posted: 22 May 2012, 20:27
by Beherith
I know lua it is the solution, but I would like some pointers for approach.
Re: Flying subs
Posted: 22 May 2012, 20:37
by smoth
what do the flying subs do in xcom? part of me wants to imagine wings unfold and bellyflop into water.
Re: Flying subs
Posted: 22 May 2012, 21:27
by Beherith
Basically, a flying sub is a sub that can go so fast underwater that it can go straight into airborne (makes sense, right?).
But the effect in this case would be to allow bombers to pop up out of the water near a coastline, and scouts to pop up from underwater too.
Re: Flying subs
Posted: 22 May 2012, 21:39
by smoth
replaceunit->start wing open animation on create() of unit script->movecontrol to height->unleash hell?
Re: Flying subs
Posted: 23 May 2012, 15:40
by Google_Frog
All I can think of is unit replacement because we don't have much control over movement. That's quite messy though.