locked: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|arg= global |Arguments in MP=
|arg= global |Arguments in MP=


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


| Check if [[vehicle]] is locked. If it is locked, [[Object#Person|Persons]] cannot mount / dismount without order. |Description=
| Check if [[vehicle]] is locked. If it is locked, [[Object#Person|Persons]] cannot mount / dismount without order.


| [[locked]] vehicle |Syntax=
| [[locked]] vehicle


|p1= vehicle: [[Object]] |Parameter 1=
|p1= vehicle: [[Object]]


|
|
Line 22: Line 22:
** 3: Locked for player
** 3: Locked for player
** -1: vehicle [[isNull|is null]]
** -1: vehicle [[isNull|is null]]
* [[Boolean]] for older games |Return value=
* [[Boolean]] for older games


|x1= <code>_locked = [[locked]] _jeepOne;</code> |Example 1=
|x1= <code>_locked = [[locked]] _jeepOne;</code>


| [[lock]], [[setVehicleLock]], [[lockedDriver]], [[lockedCargo]], [[lockedTurret]] |See also=
| [[lock]], [[setVehicleLock]], [[lockedDriver]], [[lockedCargo]], [[lockedTurret]]
}}
}}



Revision as of 02:05, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
locked vehicle
Parameters:
vehicle: Object
Return Value:
  • Number - since Arma 3 logo black.png0.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

See also:
locksetVehicleLocklockedDriverlockedCargolockedTurret

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

Bottom Section