Tank explosion animation
Moderator: Moderators
Tank explosion animation
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:
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.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 )
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
try this:
Change "$tank" to the targetname you are using for your tank.
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
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:



