Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:2.00

Description

Description:

Lock the driver position of the vehicle.

A locked position cannot be entered by either the player or an AI unit (even if it is empty). A locked seat can be left, but not reoccupied.

Syntax

Syntax:vehicle lockDriver lock
Parameters:
  • vehicle: Object - Vehicle whose seat to lock / unlock.
  • lock: Boolean - If true, then the seat is locked, false otherwise.
Return Value:Nothing

Examples

Examples:tank1 lockDriver true

Additional Information

See also: lockedDriver, locked, lockTurret, lockCargo, setBlockedSeat
Multiplayer: 
Problems: 

Notes