0% found this document useful (0 votes)
94 views1 page

Realistic Car Controller V3.2 API

This document describes an API for Real-time Car Controller (RCC) that allows spawning RCC vehicle prefabs with position and rotation at runtime, registering vehicles as player vehicles with control and engine states, and changing vehicle control, engine, mobile controller, units, and automatic gear settings dynamically through single method calls.

Uploaded by

Slow Pork FF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views1 page

Realistic Car Controller V3.2 API

This document describes an API for Real-time Car Controller (RCC) that allows spawning RCC vehicle prefabs with position and rotation at runtime, registering vehicles as player vehicles with control and engine states, and changing vehicle control, engine, mobile controller, units, and automatic gear settings dynamically through single method calls.

Uploaded by

Slow Pork FF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

API for instantiating, registering new RCC vehicles, and changes at runtime with one line of code.

RCC. SpawnRCC (RCC_CarControllerV3 vehiclePrefab, Vector3 position,


Quaternion rotation, bool registerAsPlayerVehicle, bool isControllable, bool
isEngineRunning)
Spawns a RCC vehicle prefab with given position, rotation, sets its controllable, and engine state.

RCC.RegisterPlayerVehicle(RCC_CarControllerV3 vehicle, bool isControllable,


bool engineState)
Registers the target vehicle as player vehicle.

RCC.DeRegisterPlayerVehicle()
De-Registers the player vehicle.

RCC.SetControl(RCC_CarControllerV3 vehicle, bool controlState)


Sets controllable state of the vehicle.

RCC.SetEngine(RCC_CarControllerV3 vehicle, bool engineState)


Sets engine state of the vehicle.

RCC.SetMobileController(RCC_Settings.MobileController mobileController)
Sets the mobile controller type.

RCC.SetUnits()
Sets the units.

RCC.SetAutomaticGear(bool state)
Sets the automatic gear.

You might also like