Trailer Feet

Summary

The trailer feet controller is used to automatically deploy a trailer’s jack when it is disconnected, and retract it is connected.


File Info

Filename trailerFeet.lua
Path /lua/vehicle/controller/trailerFeet.lua
Type Auxiliary
Usage type Multiple

JBeam Properties

string
type
feet
default
The name electrics that will be used to trigger feet extension.
number
type
1
default
Electric value when the trailer is attached.
number
type
0
default
Electric value when the trailer is detached.
number
type
0
default
Initial electric value when spawning the trailer.


Public Functions

Function name
Parameters
Description
Function name
onCouplerDetached
Parameters
nodeId, obj2id, obj2nodeId
Description
Activates when the coupler gets detached.
Function name
onCouplerAttached
Parameters
nodeId, obj2id, obj2nodeId
Description
Activates when the coupler gets attached.

Example Usage

"controller": [
    ["fileName"],
    ["trailerFeet"],
],

Last modified: 22/1/2022 19:49

Any further questions?

Join our discord