![]() In the screenshot below this process has already run and the wheel data under 'Depreciated Wheel Data' has been pushed into the Wheel collection just above. This can be automated by right clicking the component and going to 'Update wheel data' to run this process automatically. Next we have to setup the wheels again on the VehicleClientSimple component. Next assign the vehicle passenger to the DriverSeat property of VehicleClientSimple by dragging the prefab from the hierarchy into the DriverSeat slot If you've already setup the server VehiclePassenger it will be easiest to just copy it across. Next, delete the steerpoint child game object (this step isn't essential so don't worry if you can't find one, this gameobject used to mark where the steering assist force is applied but we've changed to a generic twist assist that doesn't need setup)Īll the server changes have now been made, with the prefab selected in the hierarchy, scroll to the top of the inspector and click the apply button to save the changes into the prefab.Īdd a VehiclePassenger component to the client prefab gameobject. Vehicles can only accelerate if they have at least 1 drive wheel on the ground. Next assign the DriveWheels in VehicleMotor4Wheel, click on the WheelBR and WheelBL properties to highlight them in the hierarchy then drag those wheels into the DriveWheels property. This is easiest to do by dragging the prefab from the hierarchy into the ThisSeat slot in the inspector allowing Unity to automatically setup the reference. Then select your prefab, right click any component in the inspector and go to 'Paste Component As New'Īfter the vehicle passenger is setup you'll need to assign it to the ThisSeat property of VehicleController4Wheel. ![]() You can also copy a vehicle passenger component from another vehicle thats already setup by right clicking the vehicle passenger component and selecting 'Copy Component'. Start typing in 'vehiclepassenger' until its highlighted then press enter to add it to the gameobject. The easiest way to do this is to select the prefab in the hierarchy then scroll down to the bottom of the inspector and click on the 'Add Component' button. Start off by dragging both the server and client(proxy) prefabs from the project into the hierarchy so we can edit them in the scene.Īdd a vehicle passenger component to the server prefab gameobject. The following is a guide on how to mod Vehicles in Hurtworld.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |