findDrawnTarget
findDrawnTarget(
world,__namedParameters):FoundTarget
Defined in: packages/engine/src/gameplay/weapons/aim.ts:66
The nearest entity with health but the shooter that the search’s test passes through, each where this world draws it: a streamed one between the room’s last two snapshots, as the loop draws it. The test’s feet and body are written for each. Written in place: read it at once.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
__namedParameters |
TargetSearch |
Returns
Section titled “Returns”FoundTarget