Skip to content

five-on-it / packages/sim/src/weapons / pickTarget

Function: pickTarget() ​

pickTarget(targets, index): number

Defined in: packages/sim/src/weapons.ts:410

The target an input's target picks from the line of fire (wrapping), or -1 with nobody on it.

Parameters ​

targets ​

number[]

index ​

number

Returns ​

number