Menu
Lumberyard
Developer Guide (Version 1.11)

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

Copy
VehicleSystem.GetOptionalScript(char* vehicleName)

GetVehicleImplementations

Get a table of all implemented vehicles.

Syntax

Copy
VehicleSystem.GetVehicleImplementations()

ReloadSystem

Reloads the vehicle system with default values.

Syntax

Copy
VehicleSystem.ReloadSystem()

SetTpvDistance

Distance of camera in third person view.

Syntax

Copy
VehicleSystem.SetTpvDistance(float distance)

SetTpvHeight

Height of camera in third person view.

Syntax

Copy
VehicleSystem.SetTpvHeight(float height)