Menu
Lumberyard
Legacy Reference

ScriptBind_VehicleSystem

CryLua is deprecated and will be removed in a future version of Lumberyard.

Lists C++ vehicle system functions that you can call from Lua script.

GetOptionalScript

Get an (optional) script for the named vehicle.

Syntax

VehicleSystem.GetOptionalScript(char* vehicleName)

GetVehicleImplementations

Get a table of all implemented vehicles.

Syntax

VehicleSystem.GetVehicleImplementations()

ReloadSystem

Reloads the vehicle system with default values.

Syntax

VehicleSystem.ReloadSystem()

SetTpvDistance

Distance of camera in third person view.

Syntax

VehicleSystem.SetTpvDistance(float distance)

SetTpvHeight

Height of camera in third person view.

Syntax

VehicleSystem.SetTpvHeight(float height)