Can somebody help me fix my code
Posted: 2023-08-02 22:20
can somebody fix this stupid issue i get an error when i enter a vehicle it says: "You are trying to enter a vehicle that is not prepared to use with AI"
here is full code of the .tweak file
here is full code of the .tweak file
and this one is from .con filerem *** Generated with Bf2Editor.exe [created: 2011/8/17 16:27]
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe PlayerControlObject meat_kv2_hullmg
ObjectTemplate.creator PHILSCH-Z4KV58Uhil
ObjectTemplate.modifiedByUser "panther223"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 9
rem ---BeginComp:VehicleHud ---
ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.typeIcon Ingame\Vehicles\Icons\Hud\MenuIcons\menuIcon_tank.tga
ObjectTemplate.vehicleHud.miniMapIcon Ingame\Vehicles\Icons\Minimap\mini_tank.dds
ObjectTemplate.vehicleHud.miniMapIconLeaderSize Medium
ObjectTemplate.vehicleHud.hasTurretIcon 1
ObjectTemplate.vehicleHud.vehicleIconPos 1/1
ObjectTemplate.vehicleHud.useSelectionIcons 0
rem ---EndComp ---
ObjectTemplate.geometry meat_kv2_hullmg
ObjectTemplate.setCollisionMesh meat_kv2_hullmg
ObjectTemplate.mapMaterial 0 ColormapGloss 0
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate S_meat_kv2_hullmg_Ambient
ObjectTemplate.addTemplate S_meat_kv2_hullmg_AmbientDamaged
ObjectTemplate.addTemplate e_enter_hatch
ObjectTemplate.setPosition -0.242336/0.466659/2.081
ObjectTemplate.addTemplate e_exit_hatch
ObjectTemplate.setPosition -0.242336/0.466659/2.081
rem -------------------------------------
ObjectTemplate.activeSafe Sound S_meat_kv2_hullmg_Ambient
ObjectTemplate.modifiedByUser "panther223"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/vehicles/land/tnk_type98/sounds/t98_cockpit.ogg"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 0
ObjectTemplate.volume 0.35
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.activeSafe Sound S_meat_kv2_hullmg_AmbientDamaged
ObjectTemplate.modifiedByUser "panther223"
ObjectTemplate.activeSafe RotationalBundle meat_kv2_hullMG_hullmg
ObjectTemplate.modifiedByUser "panther223"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate S_meat_kv2_hullMG_hullmg_RotationRpm
ObjectTemplate.addTemplate hull_dt
ObjectTemplate.setPosition -0.014/0/-0.4
ObjectTemplate.addTemplate Tank_GunnerCamera
ObjectTemplate.setPosition 0/0.125829/-0.2999999
rem -------------------------------------
ObjectTemplate.setMinRotation -30/-30/0
ObjectTemplate.setMaxRotation 30/15/0
ObjectTemplate.setMaxSpeed 25/25/0
ObjectTemplate.setAcceleration 250/250/0
ObjectTemplate.setInputToYaw PIMouseLookX
ObjectTemplate.setInputToPitch PIMouseLookY
ObjectTemplate.activeSafe Sound S_meat_kv2_hullMG_hullmg_RotationRpm
ObjectTemplate.modifiedByUser "panther223"
ObjectTemplate.lowSamples 2147483647
ObjectTemplate.mediumSamples 2147483647
ObjectTemplate.soundFilename "objects/weapons/common/sounds/mg_rotation.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 1
ObjectTemplate.stopType 0
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.reverbLevel 1
ObjectTemplate.pitchEnvelope 0/1/0.5/1.5/0/2/0.01/1.003/0.5/1/1.203/0.5/
ObjectTemplate.volumeEnvelope 0/1/0/1/0/2/0.069/0/0/0.32/1/0/
ObjectTemplate.minDistance 2
ObjectTemplate.halfVolumeDistance 2.5
GeometryTemplate.create BundledMesh meat_kv2_hullmg
CollisionManager.createTemplate meat_kv2_hullmg
ObjectTemplate.create PlayerControlObject meat_kv2_hullmg
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.creator PANTHER223anther223
ObjectTemplate.collisionMesh meat_kv2_hullmg
ObjectTemplate.mapMaterial 0 ColormapGloss 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType 3
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.geometry meat_kv2_hullmg
ObjectTemplate.create RotationalBundle meat_kv2_hullMG_hullmg
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.geometryPart 1
include meat_kv2_hullmg.tweak