OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FW200 on 06 Sep 2002, 17:58:01

Title: LGB at point of destruction??
Post by: FW200 on 06 Sep 2002, 17:58:01
Hi,

I want to make some kamikaze planes for my mission... but the planes just dont explode heavily enough..

I would like to see that when the planes gets destroyed (shot down or when it crashes) that an LGB or satchels charge like explosion happens at the planes position....

Is that possible??
Title: Re:LGB at point of destruction??
Post by: icarus_uk on 06 Sep 2002, 18:12:44
You can do it with a trigger.

Name the plane and put the condition of the trigger as;

!(Alive PlaneName)

Activation as;

bomb1 = "laserguidedbomb" camcreate (Getpos PlaneName); bomb2 = "laserguidedbomb" camcreate (Getpos PlaneName)

This way when the plane dies it will explode in a giant explosion.  Either on the ground or in the air.  Notice you need to create two bombs since if the plane dies in mid air the two bombs will collide and explode, otherwise one would just fall to the floor.  This way the plane will explode mid air.  And on the ground, its going to make one heck of a booom.
Title: Re:LGB at point of destruction??
Post by: CrashnBurn on 06 Sep 2002, 18:17:32
Yes you can but the problem is you can never get the extra explosion to happen at exactly the same time as the planes explosion, so it looks stupid. Maybe some expert will come along here and prove me wrong?
Title: Re:LGB at point of destruction??
Post by: FW200 on 06 Sep 2002, 21:33:05
Ah thank you very much icarus!!! ;)

My mission is becoming really much fun  ;D

@  CrashnBurn the explosion doesnt matter.. as long as it does enough damage :P
Title: Re:LGB at point of destruction??
Post by: Pandoz on 17 Jan 2003, 07:36:17
also...the plane wouldnt blow up the instant it hit...the fuel tank could take a few seconds to a few minutes to explode once the plane has hit.