Skip to content

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

Function: isBehind() ​

isBehind(sim, attacker, target): boolean

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

Whether attacker stands behind target: within KNOCKOUT_CONE either side of straight back from where the target faces (its aim).

Parameters ​

sim ​

SimWorld

attacker ​

number

target ​

number

Returns ​

boolean