Well. I've been making a certain unit that has an Independence-Day-style beam as its only weapon. Since it should fire directly downwards, and gunships have a hard-wired "strafe left-right at some range" behaviour, they are unapplicable. So i played with the physics settings for the airplane model, and got myself a quite acceptable "zeppelin" that has zero mygravity, zero elevator and near-zero aileron (since completely zero aileron crashes the game when attempting to fps it).
It works as intended; The only trouble is that when the "zeppelin" gets shot down, it won't always blow up in midair, but sometimes will start "crashing". Now, since it is "lighter than air", it won't actually fall, and will just sit there in the sky emitting a profound volume of smoke.
Now: is there any way do disable the crashing behaviour for certain units? Or at least find out when they enter the crashing states to euthanize them by Lua?
Undead crashing aircraft
Moderator: Moderators
Re: Undead crashing aircraft
I think you can do it with a tag, but I know you can disable a gunship from strafing. And killing units with a script as plan B will also definitely work.
Re: Undead crashing aircraft
Axm, that's the thing about the undead. They don't count as dead either, so neither UnitDestroyed call-in will report them, nor will IsUnitDead return true. ^^And killing units with a script as plan B will also definitely work.
I'll try the "airstrafe=0" tho.
Re: Undead crashing aircraft
I'm not sure that this counts as euthenasia, given the zeppelin clearly doesn't want to die!Anarchid wrote:to euthanize them
Re: Undead crashing aircraft
Set canCrash to 0, IIRC.It works as intended; The only trouble is that when the "zeppelin" gets shot down, it won't always blow up in midair, but sometimes will start "crashing".
Re: Undead crashing aircraft
I suspected that something was missing on the wiki. ^^Set canCrash to 0, IIRC.
4.241 kudos to Argh.