Skip to content

five-on-it / packages/sim/src/damage / hurtSeated

Function: hurtSeated() ​

hurtSeated(sim, eid, amount, owner, weapon, point): number

Defined in: packages/sim/src/damage.ts:204

Takes amount hit points off a person seated in a vehicle, whom no shot reaches (see isHittable): a burning car's fire, its blast (fire.ts). An invincible person, a ghost or one owner may not hurt shrugs it off; the dead are left alone. Records a hit event and returns the hit points dealt.

Parameters ​

sim ​

SimWorld

eid ​

number

amount ​

number

owner ​

number

weapon ​

number

point ​

x ​

number

y ​

number

z ​

number

Returns ​

number