IfSetNpcHeadActive

class IfSetNpcHeadActive : OutgoingGameMessage

If set-npc-head-active is used to set a npc's chathead on an interface, commonly in dialogues. Rather than taking the id of the npc config, this function takes the index of the npc in the world. Npc's model is looked up from the client through npc info, allowing for the chatbox to render a custom-built npc with completely dynamic models, rather than the pre-defined configs.

Constructors

Link copied to clipboard
constructor(interfaceId: Int, componentId: Int, index: Int)
constructor(combinedId: Int, index: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard

the bitpacked combination of interfaceId and componentId.

Link copied to clipboard

the component id on which the model resides

Link copied to clipboard
val index: Int

the index of the npc in the world

Link copied to clipboard

the interface id on which the model resides

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String