Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:17.2.0

Description

Description: Sets the locked state of a towing memory point on a vehicle.

Syntax

Syntax: [vehicle, point, lock] call fn_tow_setPointLocked
Parameters:
  • vehicle: Object - The vehicle.
  • point: String - Name of memory point to set in locked state.
  • lock: Boolean - Determines whether to add (true) or remove (false) the memory point from the locked points array.
Return Value: Nothing

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples: Lock point "tieDown_2_1" on vehicle1:
[vehicle1, "tieDown_2_1", true] call fn_tow_setPointLocked
Unlock point "tieDown_2_1" on vehicle1:
[vehicle1, "tieDown_2_1", false] call fn_tow_setPointLocked

Additional Information

See also: fn tow towParent, fn tow towChild, fn tow canTow, fn tow canHitch, fn tow startTow, fn tow startHitch, fn tow startRopeTow, fn tow stopTow, fn tow stopHitch, fn tow stopRopeTow, fn tow getRopeTowConnections, fn tow getAvailableTowPoints
Multiplayer:Can be applied to remote objects, the locality of the arguments does not matter.
Problems: 

Notes