Skip to content

five-on-it / packages/net-client/src/predictor / adoptTrailer

Function: adoptTrailer() ​

adoptTrailer(sim, tractor, trailer): void

Defined in: packages/net-client/src/predictor.ts:217

Puts a snapshot's trailer on the trailer a local tractor tows, if it tows one.

Parameters ​

sim ​

SimWorld

tractor ​

number

trailer ​

EntitySnapshot

Returns ​

void