Skip to content

five-on-it / packages/sim/src/character / doorFree

Function: doorFree() ​

doorFree(sim, eid, vehicle, door): boolean

Defined in: packages/sim/src/character.ts:1315

Whether a character can stand at a car's door (see doorSpot): the spot is free (spotFree) at the ground's height there.

Parameters ​

sim ​

SimWorld

eid ​

number

vehicle ​

number

door ​

VehicleDoor

Returns ​

boolean