Skip to content

five-on-it / packages/ai/src/system / NpcReadoutRow

Interface: NpcReadoutRow ​

Defined in: packages/ai/src/system.ts:784

One NPC as the readout tells it: what it does, after whom, how far (−1 with no target), whether it drives, where it is, and the link it is taking (a ladder, a lift…), if any.

Properties ​

climb? ​

optional climb?: string

Defined in: packages/ai/src/system.ts:802

The kind of link it is taking (ladder, lift, drop, hop, stairs), when it is near or on one.


distance ​

distance: number

Defined in: packages/ai/src/system.ts:794

Distance to its target (m), or −1.


eid ​

eid: number

Defined in: packages/ai/src/system.ts:786

Its character entity.


mode ​

mode: NpcMode

Defined in: packages/ai/src/system.ts:788

What it is doing.


seated ​

seated: boolean

Defined in: packages/ai/src/system.ts:792

In a car.


target ​

target: number

Defined in: packages/ai/src/system.ts:790

The character it is after (the one it was assigned until it finds one itself), or −1.


x ​

x: number

Defined in: packages/ai/src/system.ts:796

Where it is (m, to a tenth).


y ​

y: number

Defined in: packages/ai/src/system.ts:800

How high its body's centre is (m, to a tenth).


z ​

z: number

Defined in: packages/ai/src/system.ts:798

Where it is (m, to a tenth).