locked: Difference between revisions
Jump to navigation
Jump to search
m (See also) |
Killzone Kid (talk | contribs) (syntax) |
||
Line 12: | Line 12: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''locked''' vehicle |= Syntax | ||
|p1= vehicle: [[Object]] |= Parameter 1 | |p1= vehicle: [[Object]] |= Parameter 1 | ||
| [[ | | [[Number]] - since Arma 3: 0 - Unlocked; 1 - Default; 2 - Locked; 3 - Locked for player; -1 - vehicle is null. Older games will return [[Boolean]] |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_locked = [[locked]] _jeepOne;</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 12:05, 22 October 2014
Description
- Description:
- Check if vehicle is locked for Persons. If it is locked, Persons cannot mount / dismount without order.
- Groups:
- Uncategorised
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
- See also:
- locksetVehicleLock
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Command Group: Vehicle Assignment
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters