Menu
Lumberyard
Developer Guide (Version 1.12)

ScriptBind_VehicleSeat

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

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

GetPassengerId

Gets the passenger identifier.

Syntax

Copy
VehicleSeat.GetPassengerId()

GetVehicleSeat

Gets the vehicle seat identifier.

Syntax

Copy
VehicleSeat.GetVehicleSeat()

GetWeaponCount

Gets the number of weapons available on this seat.

Syntax

Copy
VehicleSeat.GetWeaponCount()

GetWeaponId

Gets the weapon identifier.

Syntax

Copy
VehicleSeat.GetWeaponId(int weaponIndex)

Parameter Description
weaponIndex Weapon identifier.

IsDriver

Checks if the seat is the driver seat.

Syntax

Copy
VehicleSeat.IsDriver()

IsFree

Checks if the seat is free.

Syntax

Copy
VehicleSeat.IsFree(ScriptHandle actorHandle)

Parameter Description
actorHandle Passenger identifier.

IsGunner

Checks if the seat is the gunner seat.

Syntax

Copy
VehicleSeat.IsGunner()

Reset

Resets the vehicle seat.

Syntax

Copy
VehicleSeat.Reset()

SetAIWeapon

Sets the weapon artificial intelligence.

Syntax

Copy
VehicleSeat.SetAIWeapon(ScriptHandle weaponHandle)

Parameter Description
weaponHandle Weapon identifier.