Skip to content

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

Interface: NpcReadoutRow ​

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

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:754

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:746

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


eid ​

eid: number

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

Its character entity.


mode ​

mode: NpcMode

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

What it is doing.


seated ​

seated: boolean

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

In a car.


target ​

target: number

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

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:748

Where it is (m, to a tenth).


y ​

y: number

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

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


z ​

z: number

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

Where it is (m, to a tenth).