Tank explosion animation

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Tank explosion animation

Post by strafer »

In destroyed village, I made a tank that drives and shoots, but I cannot figure out how to make it explode when you shoot a rocket at it. I got it to just disappear, but I want it to go up in flames and explode like it does in single player. If you can help, please post an example of what it would look like. Thank you.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

If you managed to make a tank drive around, you would manage to replace the maother with a destroyed model after spawning a tank explosion... what part is the trouble? ( the more exact you ask the more exact we can answer )
Admin .MAP Forums
Image
Head above heels.
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

Bjarne BZR wrote:If you managed to make a tank drive around, you would manage to replace the maother with a destroyed model after spawning a tank explosion... what part is the trouble? ( the more exact you ask the more exact we can answer )
I can't figure out how to make the tank explode when you shoot it with a bazooka or something. I know it isn't immune to anything. I want it to show it exploding. Like in single player on SP, in Berlin, when you are in th T34 firing at other tanks. Once you destroy them, they show the animation of them blowing up. That is what I want to do to the tank, so if someone destroys it, it will explode.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Did you look in the script for that map ?
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

I am talking about destroyed village (mohdm2). I need to create the script for that map for that particular tiger tank.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

he means the map with the explosion u want. what u can do it get it to remove itself whne dead, and spawn a destryoed model in its place
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

try this:

Code: Select all

	local.fire = spawn script_model 
	local.fire model models/emitters/explosion_tank.tik
	local.fire.origin = $tank.origin + (0 0 48)
	local.fire.scale = 1
	local.fire anim start 
Change "$tank" to the targetname you are using for your tank.
Tom Trude,

Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

There is tank code and map files in my bridge map and the spr one if your wanting to have a look.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

I eventually got it. Thanks for your help anyway guys.
Post Reply