addHeadBar

fun addHeadBar(id: Int, startFill: Int, endFill: Int = startFill, startTime: Int = 0, endTime: Int = 0)

Adds a headbar onto the avatar. If a headbar by the same id already exists, updates the status of the old one. Up to four distinct headbars can be rendered simultaneously.

Parameters

id

the id of the headbar to render

startFill

the number of pixels to render of this headbar at in the start. The number of pixels that a headbar supports is defined in its respective headbar config.

endFill

the number of pixels to render of this headbar at in the end, if a startTime and endTime are defined.

startTime

the delay in client cycles (20ms/cc) until the headbar renders at startFill

endTime

the delay in client cycles (20ms/cc) until the headbar arrives at endFill.