OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OrnelP on 07 Jun 2006, 12:56:49

Title: Tank with Jet fuel?
Post by: OrnelP on 07 Jun 2006, 12:56:49
 ???   Hey all, im not a soldier, and i have never seen a tank blown up before by a bomb... But im pretty sure tanks dont go flying 3miles when hit by a-10 1000lb bomb? do they?, nevertheless is there a way just to have a tank explode and not start flying off into the blue yonder?

So i figure i could use SEtpos commands? open to any advise.
Title: Re: Tank with Jet fuel?
Post by: Trapper on 07 Jun 2006, 15:08:38
Maybe this looks realistic as it doesn't effect horizontal movement after destruction. More accurate timing isn't possible.
In large numbers the scripts will stress the system.

In init line of the vehicle:
this exec "script.sqs"

The script:
Code: [Select]
@ !alive _this
_this setvelocity [(velocity _this select 0),(velocity _this select 1),0]

EDIT:
0 Z velocity isn't working.
_this setvelocity [(velocity _this select 0),(velocity _this select 1),-110] instead works for a combination of a M113 and three satchel charges.
You'll will always have to adapt this to the particular vehicle/explosiv combination otherwise the vehicle flys even better.
Only usefull for cutscenes.
Title: Re: Tank with Jet fuel?
Post by: The-Architect on 07 Jun 2006, 15:56:51
This is a known problem.

Try placing a few satchels behind a jeep.  ;D

A workaround, that might suit your needs, but then again might not is to use the drop command to create a big blast effect and then to deletevehicle the original tank and then setpos a destroyed tank in it's place. Obviously whilst the cloud/blast is obscuring the magic trick.
Title: Re: Tank with Jet fuel?
Post by: SgtSlick on 08 Jun 2006, 01:19:35
You could. Or you can just made an effect and set the dammage for the same tank.
Title: Re: Tank with Jet fuel?
Post by: The-Architect on 08 Jun 2006, 23:40:35
But the blast is still gonna send it into orbit m8.