locked: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 9: Line 8:


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


| 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. |Description=
____________________________________________________________________________________________


| [[locked]] vehicle |Syntax=
| [[locked]] vehicle |Syntax=
Line 26: Line 23:
** -1: vehicle [[isNull|is null]]
** -1: vehicle [[isNull|is null]]
* [[Boolean]] for older games |Return value=
* [[Boolean]] for older games |Return value=
____________________________________________________________________________________________


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


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

Revision as of 02:55, 17 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

Notes

Bottom Section