setVehicleLock: Difference between revisions

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


| arma1 |Game name=
| arma1 |Game name=
Line 10: Line 9:


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


| Sets vehicle lock. Possible values:
| Sets vehicle lock. Possible values:
Line 18: Line 16:
* "LOCKED"
* "LOCKED"
* "LOCKEDPLAYER" |DESCRIPTION=
* "LOCKEDPLAYER" |DESCRIPTION=
____________________________________________________________________________________________


| vehicleName '''setVehicleLock''' lockState |SYNTAX=
| vehicleName '''setVehicleLock''' lockState |SYNTAX=
Line 27: Line 24:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_veh1 [[setVehicleLock]] "LOCKED";</code> |EXAMPLE1=
|x1= <code>_veh1 [[setVehicleLock]] "LOCKED";</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[lock]], [[locked]], [[lockDriver]], [[lockCargo]], [[lockTurret]]  |SEEALSO=
| [[lock]], [[locked]], [[lockDriver]], [[lockCargo]], [[lockTurret]]  |SEEALSO=

Revision as of 03:47, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets vehicle lock. Possible values:
  • "UNLOCKED"
  • "DEFAULT"
  • "LOCKED"
  • "LOCKEDPLAYER"
Groups:
Object Manipulation

Syntax

Syntax:
vehicleName setVehicleLock lockState
Parameters:
vehicleName: Object
lockState: String see above
Return Value:
Nothing

Examples

Example 1:
_veh1 setVehicleLock "LOCKED";

Additional Information

See also:
locklockedlockDriverlockCargolockTurret

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

Posted on October 22, 2014 - 02:01 (UTC)
AgentRevolution
In Arma 3:
setVehicleLock "UNLOCKED" = same as "lock 0"
setVehicleLock "DEFAULT" = same as "lock 1"
setVehicleLock "LOCKED" = same as "lock 2"
setVehicleLock "LOCKEDPLAYER" = same as "lock 3"
Posted on March 4, 2015 - 15:57 (UTC)
Killzone Kid
DEFAULT lock is default vehicle lock when vehicle placed in editor. If player is in a group of AIs and not the leader, he will not be able to enter this vehicle as he will not have GetIn action for this vehicle.