Making a Crashing Spaceship [Solved]
Posted: Sun Oct 04, 2015 7:26 am
I know how to make a Spaceship, that is placed high above the the ground. But I don't know how to make a scripted event that starts a ZeroEditor Animation after a specific object is destroyed.
Here's how it was planned:
That's all so far. It would possibly work if I knew how to script that. Thank you very much if you could help me.
Here's how it was planned:
Code: Select all
1. Two Star Destroyers are placed high above the ground at the exact same place (X,Y,Z coords must be the same)
2. Both Ships have two different names (e.g. Destroyer_A, Destroyer_B)
3. Destroyer_B has to be animated. It must be a "crashing" animation. From the sky, through the clouds until it hits the ground
4. Then in the .lua there must be the following codes below function ScriptPostLoad():
-KillObject("Destroyer_B")
5. After Destroyer_A would have been destroyed ingame Destroyer B should respawn.
And now I am stucking in trouble:
There is "RespawnObject("Destroyer_B")". It must be "enabled" after Destroyer_A has been destroyed. Also after Destroyer_B has ben respawned the ZeroEditor Crashing animation must be enabled. So first, respawn after killed object, then respawned object must start to be animated (Crashing).