locked

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Check if vehicle is locked. If it is locked, Persons cannot mount / dismount without order.

Syntax

Syntax:
locked vehicle
Parameters:
vehicle: Object
Return Value:
  • Number - since
    Introduced with Arma 3 version 0.50
    • 0: Unlocked
    • 1: Default - a subordinate player cannot enter without AI leader order
    • 2: Locked
    • 3: Locked for player
    • -1: vehicle is null
  • Boolean for older games

Examples

Example 1:
_locked = locked _jeepOne;

Additional Information

Multiplayer:
-
See also:
locksetVehicleLocklockedDriverlockedCargolockedTurret

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section