setVehicleLock: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= local | |arg= local | ||
|eff= global | |eff= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Sets vehicle lock. Possible values: | | Sets vehicle lock. Possible values: | ||
Line 15: | Line 15: | ||
* "DEFAULT" | * "DEFAULT" | ||
* "LOCKED" | * "LOCKED" | ||
* "LOCKEDPLAYER" | * "LOCKEDPLAYER" | ||
| vehicleName '''setVehicleLock''' lockState | | vehicleName '''setVehicleLock''' lockState | ||
|p1= vehicleName: [[Object]] | |p1= vehicleName: [[Object]] | ||
|p2= lockState: [[String]] see above | |p2= lockState: [[String]] see above | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_veh1 [[setVehicleLock]] "LOCKED";</code> | |x1= <code>_veh1 [[setVehicleLock]] "LOCKED";</code> | ||
| [[lock]], [[locked]], [[lockDriver]], [[lockCargo]], [[lockTurret]] | | [[lock]], [[locked]], [[lockDriver]], [[lockCargo]], [[lockTurret]] | ||
}} | }} |
Revision as of 11:10, 18 January 2021
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
- 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands