lockDriver: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(populated)
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(33 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
| arma2


|1.00|= Game version
|1.00
____________________________________________________________________________________________


| Lock the driver position of the vehicle. |= Description
|arg= local
____________________________________________________________________________________________


| vehicle '''lockDriver''' lock |= Syntax
|eff= global


|p1= vehicle: [[Object]] -  |= PARAMETER1
|gr1= Object Manipulation


|p2= lock: [[Boolean]] -  |= PARAMETER2
| Lock the driver position of the vehicle. This command must be executed where vehicle is [[local]]. This command will remove user get in action (not get out) but will also stop player getting into vehicle via script commands unlike [[lock]] command


|p3= |= PARAMETER3
| vehicle '''lockDriver''' lock


| Nothing |= RETURNVALUE
|p1= vehicle: [[Object]] -


|p2= lock: [[Boolean]] -


|x1= <code>(example)</code>|= EXAMPLE1
| Nothing


____________________________________________________________________________________________
|x1= <code>vehicleName [[lockDriver]] [[true]];</code>


| |= SEEALSO
|seealso= [[lock]], [[setVehicleLock]], [[lockedDriver]], [[lockCargo]], [[lockTurret]]
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}


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


<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma2|Scripting Commands}}
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 00:54, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
vehicle: Object -
lock: Boolean -
Return Value:
Return value needed

Examples

Example 1:
vehicleName lockDriver true;

Additional Information

See also:
locksetVehicleLocklockedDriverlockCargolockTurret

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