OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Surdus Priest on 04 Nov 2007, 04:04:17

Title: flipping a vehicle
Post by: Surdus Priest on 04 Nov 2007, 04:04:17
the effect is that an explossion appears near a vehicle (a jeep in this case) and i want it to flip over.  the explossion itself doesnt need to flip the vehicle, but i need a way of turning the vehicle of on its side in a realistic motion.  does anyone know a way of doing this?
Title: Re: flipping a vehicle
Post by: LeeHunt on 09 Nov 2007, 01:28:57
hi Surdus Priest,

Here is the function attached you need created by Mors in the Zombie "Yomies" mission (http://5133p39.wz.cz/yomies/index.php)

In the initialization line of the vehicle put:

 [this,[getDir this,0,-90]] call compile preprocessFile "fn_flea_3d_dir.sqf";