Skip to content

HitmarkType

Overview

A HitmarkType config contains data about the various hitmark overlays that can be drawn above an entity.

These config types can be found within the config.Hitmark table:

config.Hitmark.MAGIC_DAMAGE
config.Hitmark["MAGIC_DAMAGE"]
config.Hitmark.FromID(2) -- config.Hitmark.MAGIC_DAMAGE

Info

A HitmarkType is a Proxy usertype, which means it is safe to copy and store in your scripts.
It cannot, however, be used with any persistent storage.

Information available within an HitmarkType includes:

  • Visibility duration
  • ... TODO

Examples

-- Access a HitmarkType config directly by using its name
local splatcfg = config.Hitmark.MAGIC_DAMAGE
-- or by ID lookup
local splatcfg = config.Hitmark.FromID(id.Hitmark.MAGIC_DAMAGE)

Constructors

Info

This usertype has no constructor, and you cannot create your own.

Properties

Info

All properties are read-only.

Name Type Description
id Integer The ID of this config type.
configName String The name of this config, i.e. "MAGIC_DAMAGE".
typeName String The type of this config. Will always be "Hitmark".
duration Integer How long, in client ticks, the hitmark will display for.