Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

isHitSpared

isHitSpared(world, target, options): boolean

Whether a hit from instigator on target is spared: it is not self-damage, its instigator is the target’s ally, and its own friendlyFire, or the world’s when it has none, is off. Self-damage is a hit whose instigator is the target, or whose player is the player behind the target, so the player’s own rocket hurts the player’s new character after a respawn, while two allied turrets with no player spare each other. A hit with no instigator, a trap’s or a falling rock’s, is never spared. What dealDamage, the shot search and abilities all judge by, and what a plugin’s own hit judges by too.

Parameter Type
world World
target Entity
options HitSparedOptions

boolean