Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DamagePacket

Received to tell the player about damage done to other players and enemies.

Hierarchy

  • DamagePacket

Implements

Index

Constructors

constructor

Properties

armorPierce

armorPierce: boolean

Whether or not the damage was armor piercing.

bulletId

bulletId: number

The id of the bullet which caused the damage.

damageAmount

damageAmount: number

The amount of damage taken.

effects

effects: number[]

An array of status effects which were applied with the damage.

kill

kill: boolean

Whether or not the damage resulted in killing the entity.

objectId

objectId: number

The object id of the entity which owned the bullet that caused the damage.

propagate

propagate: boolean = true

targetId

targetId: number

The object id of the entity receiving the damage.

type

type: PacketType = PacketType.DAMAGE

Methods

read

write

Generated using TypeDoc