21.06.2013, 12:13
I was trying to attach submarine to small boat and it doesn't work.
OnGameModeInit
OnGameModeInit
Код:
sub[0] = AddStaticVehicle(473, 391.2693, 337.8383, -0.0889, 37.0974, 1, 5); // Podmornica 1 sub[1] = AddStaticVehicle(473, 375.7180, 324.6970, -0.1708, 31.9929, 1, 5); // Podmornica 2 submarine[0] = CreateDynamicObject( 1612, 0, 0, 0, 0, 0, 0, 80 ); submarine[1] = CreateDynamicObject( 1612, 0, 0, 0, 0, 0, 0, 80 ); AttachObjectToVehicle( submarine[0], sub[0], 0.299999, -22.800050, 3.699998, 0.000000, 0.000000, 0.000000 ); AttachObjectToVehicle( submarine[1], sub[1], 0.299999, -22.800050, 3.699998, 0.000000, 0.000000, 0.000000 );