five-on-it / packages/sim/src/damage / isHittable
Function: isHittable()
isHittable(
sim,eid):boolean
Defined in: packages/sim/src/damage.ts:112
Whether a shot can hurt an entity right now: a character on foot that is not hidden behind cover and not already dead, a vehicle (or trailer) that is not wrecked (or a derelict not yet alight), a camera that is not destroyed, or a flyer still in the air.
Parameters
sim
eid
number
Returns
boolean