Play animation when animated prop is destroyed [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Play animation when animated prop is destroyed [Solved]

Post by Locutus »

Hi!
Atm I'm working on a little campaign.
In this mission I want the player to kill a ship taking off.
So I created an animation for this ship in ZE which is working. But when the ship is destroyed the animation continues with the wrecked ship.
Is there any way to play a new animation depending on where the ship is?
So that it looks as if the ship is crashing down back to the surface again.
Last edited by Locutus on Sun Sep 11, 2011 4:03 pm, edited 1 time in total.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Play animation when animated prop is destroyed

Post by DarthD.U.C.K. »

it seems like you cannot check where an animated object is/which frame it is currently at. but you can have a timer that starts when the animation starts. when the ship is destroyed you could theoretically check how long its been running and play an animation depeding on that.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Play animation when animated prop is destroyed

Post by Maveritchell »

The best way to do it dynamically may be to simply make a giant ship-sized explosion chunk. Then it would give the appearance of crashing back down and you wouldn't have to worry about timing it with a procedural animation.
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Play animation when animated prop is destroyed

Post by Locutus »

Thanks Mav, you made my day! :D
Post Reply