locked

From Bohemia Interactive Community
Jump to: navigation, 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 for Persons. If it is locked, Persons cannot mount / dismount without order.

Syntax

Syntax:
locked vehicle
Parameters:
vehicle: Object
Return Value:
Number - since Arma 3: 0 - Unlocked; 1 - Default; 2 - Locked; 3 - Locked for player; -1 - vehicle is null. Older games will return Boolean

Examples

Example 1:
_locked = locked _jeepOne;

Additional Information

Multiplayer:
-
See also:
locksetVehicleLock

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

Posted on March 4, 2013 - 16:20
Druid
From Arma 3 version 0.50 is return value Number:
-1 - Object is null
0 - Unlocked
1 - Default
2 - Locked
3 - Locked for player

Bottom Section