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



Introduced in

Version:2.00

Description

Description:

Locks a turret position of a 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 then not reoccupied again.

Syntax

Syntax:vehicle lockTurret [turret, lock]
Parameters:
  • vehicle: Object - Vehicle with turrets.
  • turret: Array - Turret path to lock.
  • lock: Object - If true, then turret is locked, if false it is unlocked.
Return Value:Nothing

Examples

Examples:
tank1 lockTurret [[0],true]

Additional Information

See also: lockedTurret, lockDriver, lockCargo, lock
Multiplayer: 
Problems: 

Notes