five-on-it / packages/sim/src/interaction / Interaction
Interface: Interaction
Defined in: packages/sim/src/interaction.ts:150
What the interaction key does now: what, to which vehicle and seat, to which entity.
Properties
kind
kind:
InteractionKind
Defined in: packages/sim/src/interaction.ts:152
What it does.
seat
seat:
number
Defined in: packages/sim/src/interaction.ts:156
The seat it takes (0, the wheel, for a carjack).
target
target:
number
Defined in: packages/sim/src/interaction.ts:158
The entity it acts on: the car, the items, the container or the car whose trunk, the door, the person, the terminal; a take-out's garage, a ladder (their index in the level); a seat or a cash machine (its index among the level's spots); -1 for nothing.
vehicle
vehicle:
number
Defined in: packages/sim/src/interaction.ts:154
The vehicle it gets into or carjacks (NO_VEHICLE for anything else).