[spoiler=Youtube Video]https://www.youtube.com/watch?v=mwGSfGf65Rk[/spoiler]
Version: v1 Beta
Vehicle author: Spartan 112
I edited it to make it fit properly when car, but when helicopter mod too.
In order to make the switch between car and heli, you need to use the following code:
Code Select
if( veh.Model == 6440 )
{
if( veh.GetHandlingData( 28 ) == -2 )
{
veh.SetHandlingData( 28, 10 );
return 0;
}
else if( veh.GetHandlingData( 28 ) == 10 )
{
veh.SetHandlingData( 28, -2 );
return 0;
}
else
{
veh.SetHandlingData( 28, 10 );
}
}
Now, you can apply it by Binding a Button, to have the best experience posible.
Have fun!
Note: Stop the car before switching to the heli mod. Otherwise, it will continue to work as a car.
It's the game engine, nothing to do, except forcing the car's stop through script.