setVehicleLock: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "AgentRevolution" to "AgentRev")
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma1 |Game name=
|game1= ofpe
|version1= 1.00


|1.00|Game version=
|game2= arma1
|version2= 1.00


|arg= local |Multiplayer Arguments=
|game3= arma2
|eff= global |Multiplayer Effects=
|version3= 1.00


|gr1= Object Manipulation |GROUP1=
|game4= arma2oa
____________________________________________________________________________________________
|version4= 1.50


| Sets vehicle lock. Possible values:
|game5= tkoh
|version5= 1.00
 
|game6= arma3
|version6= 0.50
 
|arg= local
|eff= global
 
|gr1= Object Manipulation
 
|descr= Sets vehicle lock. Possible values:
<br>  
<br>  
* "UNLOCKED"  
* "UNLOCKED"  
* "DEFAULT"
* "DEFAULT"
* "LOCKED"
* "LOCKED"
* "LOCKEDPLAYER" |DESCRIPTION=
* "LOCKEDPLAYER"
____________________________________________________________________________________________


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


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


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


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


| [[lock]], [[locked]], [[lockDriver]], [[lockCargo]], [[lockTurret]]  |SEEALSO=
|x1= <sqf>_veh1 setVehicleLock "LOCKED";</sqf>


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


<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
<dt></dt>
[[Category:Scripting Commands|SETVEHICLELOCK]]
<dd class="notedate">Posted on 2014-10-22 - 02:01 (UTC)</dd>
[[Category:Scripting Commands OFP Elite |SETVEHICLELOCK]]
<dt class="note">[[User:AgentRev|AgentRev]]</dt>
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 22, 2014 - 02:01 (UTC)</dd>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</dt>
<dd class="note">
<dd class="note">
In Arma 3:<br>
In Arma 3:<br>
Line 62: Line 57:
setVehicleLock "LOCKEDPLAYER" = same as "[[lock]] 3"
setVehicleLock "LOCKEDPLAYER" = same as "[[lock]] 3"
</dd>
</dd>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<dt><dt>
<dl class="command_description">
<dd class="notedate">Posted on 2015-03-04 - 15:57 (UTC)</dd>
<dd class="notedate">Posted on March 4, 2015 - 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.
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 23:05, 4 May 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)
AgentRev
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.