Hi, this ia a modification made by me, I´m trying to put Mg in pther planes, but Battlefield crash, someone can helpme with code? i put the same code for add the MG, but with the name for each plane.
the code:
In comples i add:
ObjectTemplate.addTemplate ZeroBrowning
ObjectTemplate.setPosition 0/1.6/-3.6
ObjectTemplate.setRotation -179.99/0/0
the rest of code of MG :
ObjectTemplate.create PlayerControlObject ZeroBrowning
ObjectTemplate.networkableInfo Stationary_mg_BodyInfo
rem ObjectTemplate.aiTemplate Stationary_Browning
ObjectTemplate.geometry tripod_stick_m1
ObjectTemplate.Material 45
Objecttemplate.GUIIndex 80
ObjectTemplate.addTemplate ZeroBrowningPoint
ObjectTemplate.setPosition 0/0.1/0
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate StationaryBrowningSeat
ObjectTemplate.setPosition 0/0.0/-0.65
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleIcon "Vehicle/Icon_zero.tga"
rem -------------------------------------
rem
rem *** StationaryBrowningpoint ***
rem
ObjectTemplate.create RotationalBundle ZeroBrowningPoint
ObjectTemplate.networkableInfo Stationary_mg_TurretInfo
rem -------------------------------------
ObjectTemplate.addTemplate ZeroBrowningRotation
rem -------------------------------------
ObjectTemplate.setMinRotation -90/0/0
ObjectTemplate.setMaxRotation 90/0/0
ObjectTemplate.setMaxSpeed 90/0/0
ObjectTemplate.setAcceleration 5000/0/0
ObjectTemplate.setInputToYaw 4
ObjectTemplate.setInputToPitch 5
rem
rem *** StationaryBrowningRotation ***
rem
ObjectTemplate.create RotationalBundle ZeroBrowningRotation
ObjectTemplate.networkableInfo Stationary_mg_TurretInfo
rem -------------------------------------
ObjectTemplate.addTemplate Browning
ObjectTemplate.setPosition 0/0/0.4
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate StationaryBrowningCamera
ObjectTemplate.setPosition 0/0.3/-0.1
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-70/0
ObjectTemplate.setMaxRotation 0/30/0
ObjectTemplate.setMaxSpeed 0/90/0
ObjectTemplate.setAcceleration 0/5000/0
ObjectTemplate.setInputToYaw 4
ObjectTemplate.setInputToPitch 5
rem
rem *** StationaryBrowningSeat ***
rem
ObjectTemplate.create SeatObject StationaryBrowningSeat
ObjectTemplate.seatFlags c_SeatShowStandingSoldier
ObjectTemplate.seatFlags c_SeatIsOutside
rem *** ZeroCamera ***
ObjectTemplate.create Camera ZeroCamera