#Vehicle issues

1 messages · Page 1 of 1 (latest)

wooden flame
#

So i recently made a vehicle, my first vehicle (AVBMV, or A Very Bad Made Vehicle), but by some reason it doesn't want to work, it appears and even the suspension works perfectly, but i cant drive it, even i can't enter the car
Also if the vehicle's HP reaches 0%, it will explode like a nuclear bomb instantly
Right now i don't know what to do

elder sentinel
#

First thing I would recommend is following this post

wooden flame
#

`.Dat content:
GUID 1a52b3576d474a7a8a8cdb3f95a6b595
Type Vehicle
ID 50000

Speed_Min -7
Speed_Max 12.5

Steer_Min 12
Steer_Max 24

Brake 32

Fuel_Min 200
Fuel_Max 400
Fuel 2000

Health_Min 400
Health_Max 500
Health 600

Traction

Trunk_Storage_X 3
Trunk_Storage_Y 3

Explosion 20
SqrDelta 1.6

Has_Clip_Prefab false

Carjack_Force_Multiplier 2
Explosion_Force_Multiplier 2

WheelConfigurations
[
{
WheelColliderPath Tires/Tire_0
IsColliderSteered true
IsColliderPowered true
ModelPath Wheels/Wheel_1
ModelUseColliderPose true
}
{
WheelColliderPath Tires/Tire_1
IsColliderSteered true
IsColliderPowered true
ModelPath Wheels/Wheel_2
ModelUseColliderPose true
}
{
WheelColliderPath Tires/Tire_2
IsColliderSteered true
IsColliderPowered true
ModelPath Wheels/Wheel_3
ModelUseColliderPose true
}
{
WheelColliderPath Tires/Tire_3
IsColliderSteered true
IsColliderPowered true
ModelPath Wheels/Wheel_4
ModelUseColliderPose true
}
]

ReverseGearRatio 10
ForwardGearRatios
[
20
13.7
]
GearShift_UpThresholdRPM 5000
GearShift_Duration 0.2
GearShift_Interval 0.5
EngineIdleRPM 1000
EngineMaxRPM 6000
EngineMaxTorque 2.8

EngineSound_Type EngineRPMSimple
EngineSound
{
IdlePitch 1.0
IdleVolume 0.75
MaxPitch 2
MaxVolume 1.0
}`

#

that's all for now, im trying to do some stuff rn

shut adder
#

@wooden flamethe "Steer" gameobject should be inside an "Object" gameobject (tagged and layered as vehicle)

rugged summit
#

your vehicle spawns in blown up because a gameobject required by game code is missing

#

even if it doesnt contain anything, it needs to be there

#

these should be the core gameobjects afaik. Make sure all of them are present ion your vehicle

#

@wooden flame

#

if it still doesnt work, take a pic of your hierarchy, like this, fully expanded, so we can see what you have and how stuff is set up

wooden flame
#

let me do something, "Objects" was called "Object", i think that's the issue

#

Discord's UI just crashed Unity and Unturned, nice

wooden flame
rugged summit
#

Np