[Modding] Allowing player to attach to your vehicle - salutesh/DayZ-Expansion-Scripts GitHub Wiki
In your vehiclename.c add the following :
#ifdef EXPANSIONMODVEHICLE
// Do you want the player to stay attached to the vehicle when leaving his seat ?
// You can specify what seat should allow this behaviour
override bool LeavingSeatDoesAttachment( int posIdx )
{
return false;
}
#endif