OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aldo15 on 25 Nov 2010, 01:25:03

Title: how to make a plane crashing into a building
Post by: Aldo15 on 25 Nov 2010, 01:25:03


Hi I am new to this forum, I wanted to know if anyone knows a script where
make a plane crashing into a building. I need it for the campaign
I'm creating. ??? ???
Title: Re: how to make a plane crashing into a building
Post by: Walter_E_Kurtz on 25 Nov 2010, 01:45:18
It depends under what circumstances you want this to happen. Is it to be part of a cinematic? How much of the flight has to be seen by the player?

If you only need the impact itself, first use setPos (http://www.ofpec.com/COMREF/index.php?action=details&id=313&game=All) to position the aircraft close to the ground and then setVelocity (http://www.ofpec.com/COMREF/index.php?action=details&id=321&game=All) to send it on its way.
Title: Re: how to make a plane crashing into a building
Post by: Aldo15 on 25 Nov 2010, 02:06:43

want it to look the same way as the plane crashed in Ozama
September 11 when it hit the twin towers :D :D
Title: Re: how to make a plane crashing into a building
Post by: RKurtzDmitriyev on 27 Nov 2010, 01:48:53
Walter_E has the solution, then.