lockCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 46: Line 46:
|x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code>
|x2= <code>vehicleName [[lockCargo]] [0, [[true]]];</code>


|seealso= [[lock]] [[setVehicleLock]] [[lockDriver]] [[lockedCargo]], [[lockTurret]]
|seealso= [[lock]] [[setVehicleLock]] [[lockDriver]] [[lockedCargo]] [[lockTurret]]
}}
}}

Revision as of 17:03, 20 January 2022

Hover & click on the images for description

Description

Description:
Lock all cargo positions of a vehicle or lock by index. This command will remove user "get in" action (not get out) but will also stop player getting into vehicle via script commands (e.g moveInCargo) unlike lock command.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle lockCargo lock
Parameters:
vehicle: Object
lock: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
vehicle lockCargo [index, lock]
Parameters:
vehicle: Object
[index, lock]: Array
index: Number
lock: Boolean
Return Value:
Nothing

Examples

Example 1:
vehicleName lockCargo true;
Example 2:
vehicleName lockCargo [0, true];

Additional Information

See also:
lock setVehicleLock lockDriver lockedCargo 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