setVehicleLock: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *ofpe * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= ofpe |version1= $1 |game2")
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(13 intermediate revisions by 2 users not shown)
Line 31: Line 31:
* "LOCKEDPLAYER"
* "LOCKEDPLAYER"


|s1= vehicleName '''setVehicleLock''' lockState
|s1= vehicleName [[setVehicleLock]] lockState


|p1= vehicleName: [[Object]]
|p1= vehicleName: [[Object]]


|p2= lockState: [[String]] see above
|p2= lockState: [[String]]


|r1=[[Nothing]]
|r1= [[Nothing]]


|x1= <code>_veh1 [[setVehicleLock]] "LOCKED";</code>
|x1= <sqf>_veh1 setVehicleLock "LOCKED";</sqf>


|seealso= [[lock]], [[locked]], [[lockDriver]], [[lockCargo]], [[lockTurret]]
|seealso= [[lock]] [[locked]] [[lockDriver]] [[lockCargo]] [[lockTurret]]
}}
}}


{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}


<dl class="command_description">
<dl class="command_description">


<dt></dt>
<dt></dt>
<dd class="notedate">Posted on October 22, 2014 - 02:01 (UTC)</dd>
<dd class="notedate">Posted on 2014-10-22 - 02:01 (UTC)</dd>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</dt>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</dt>
<dd class="note">
<dd class="note">
Line 64: Line 59:


<dt><dt>
<dt><dt>
<dd class="notedate">Posted on March 4, 2015 - 15:57 (UTC)</dd>
<dd class="notedate">Posted on 2015-03-04 - 15:57 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dd class="note">
<dd class="note">
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.
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.

Latest revision as of 14:48, 12 March 2024

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
Return Value:
Nothing

Examples

Example 1:
_veh1 setVehicleLock "LOCKED";

Additional Information

See also:
lock locked lockDriver lockCargo lockTurret

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


Posted on 2014-10-22 - 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 2015-03-04 - 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.