setVehicleLock: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (See also)
(description, note, format)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set how vehicle is locked for player.
| Sets vehicle lock. Possible values:
 
<br>
Possible values: "UNLOCKED", "DEFAULT" or "LOCKED". |= Description
* "UNLOCKED"  
* "DEFAULT"
* "LOCKED"
* "LOCKEDPLAYER" |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicleName '''setVehicleLock''' state |= Syntax
| vehicleName '''setVehicleLock''' lockState |= Syntax


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


|p2= state: [[String]] see above |= Parameter 2
|p2= lockState: [[String]] see above |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_veh1 setVehicleLock "LOCKED"</pre> |= Example 1
|x1= <code>_veh1 [[setVehicleLock]] "LOCKED";</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 51: Line 54:
setVehicleLock "UNLOCKED" = same as "[[lock]] 0"<br/>
setVehicleLock "UNLOCKED" = same as "[[lock]] 0"<br/>
setVehicleLock "DEFAULT" = same as "[[lock]] 1"<br/>
setVehicleLock "DEFAULT" = same as "[[lock]] 1"<br/>
setVehicleLock "LOCKED" = same as "[[lock]] 2"
setVehicleLock "LOCKED" = same as "[[lock]] 2"<br/>
setVehicleLock "LOCKEDPLAYER" = same as "[[lock]] 3"
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 11:54, 22 October 2014

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

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

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:
locklocked

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"