Skip to content

five-on-it / packages/sim/src/griefing / mayHurt

Function: mayHurt() ​

mayHurt(sim, owner, target): boolean

Defined in: packages/sim/src/griefing.ts:180

Whether a hit dealt by owner (a player's client id, 0 for nobody) may hurt target (a character or a vehicle): see the module documentation. A ghost is never hurt, by anyone.

Parameters ​

sim ​

SimWorld

owner ​

number

target ​

number

Returns ​

boolean