Menu
Lumberyard
Legacy Reference

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

VehicleSeat.GetPassengerId()

GetVehicleSeat

Gets the vehicle seat identifier.

Syntax

VehicleSeat.GetVehicleSeat()

GetWeaponCount

Gets the number of weapons available on this seat.

Syntax

VehicleSeat.GetWeaponCount()

GetWeaponId

Gets the weapon identifier.

Syntax

VehicleSeat.GetWeaponId(int weaponIndex)

Parameter Description
weaponIndex Weapon identifier.

IsDriver

Checks if the seat is the driver seat.

Syntax

VehicleSeat.IsDriver()

IsFree

Checks if the seat is free.

Syntax

VehicleSeat.IsFree(ScriptHandle actorHandle)

Parameter Description
actorHandle Passenger identifier.

IsGunner

Checks if the seat is the gunner seat.

Syntax

VehicleSeat.IsGunner()

Reset

Resets the vehicle seat.

Syntax

VehicleSeat.Reset()

SetAIWeapon

Sets the weapon artificial intelligence.

Syntax

VehicleSeat.SetAIWeapon(ScriptHandle weaponHandle)

Parameter Description
weaponHandle Weapon identifier.