Line Lock

Summary

Controller that can be used to lock a given set of brake lines to help with burnouts. The state of locking can be anything from unpressured to fully pressured depending on setup and usage.


File Info

Filename lineLock.lua
Path /lua/vehicle/controller/lineLock.lua
Type Auxiliary
Usage type Multiple (Not useful)

JBeam Properties

Name
Default
Unit
Description
Name
lockedLines
Default
nil
Unit
array<string>
Description
Array of wheelnames whose brake lines get locked upon activating the line lock
Name
electricsName
Default
linelock
Unit
string
Description
The electrics name the lineLock controller listens for to get activated

Public Functions

Function name
Parameters
Description
Function name
setLineLock(value)
Parameters
number
Description
Activates or deactivates the line lock
Function name
toggleLineLock()
Parameters
Description
Toggles between activated and deactivated line lock

Example Usage

"controller": [
  ["fileName"],
  ["lineLock"]
],
"lineLock": {
  "lockedLines":["RR","RL"],
}

Last modified: 26 November 2021, at 20:44

Any further questions?

Join our discord