Zum Hauptinhalt springen

Btcmob NPC Definition

A BtcMob that can be used as an NPC

The btcmobnpcDefinition class is an entry that represents a BtcMob that can be used as an NPC. It has an Icon above the head when an NpcInteractObjective is active for a player. And when the objective is being tracked, the npc will have a different icon. The npc also has its display name above the head with configurable positioning. ## How could this be used? This could be used to create NPCs using BtcMobs entities with all the features of TypeWriter NPCs, including dialogue interactions, cinematics focus, and quest objectives.

Felder

FeldTypStandardBeschreibung
soundVar<Sound>EMPTY—
mobTypeVar<String>—The BtcMob type to spawn.
showDisplayNameBooleantrueWhether to show the display name above the mob.
showDisplayNameInCinematicBooleantrueWhether to show the display name during cinematics.
showDisplayNameInNavigationBooleantrueWhether to show the display name during navigation.
nameOffsetDouble2.3Y offset for the name display above the mob.
dataList<Ref<EntityData<*>>>empty—
tickingBooleanfalseWhether to tick the NPC for movement and updates.
clientSideRadiusDouble0.0Radius in which the mob can move (requires ticking=true). If 0, movement is disabled.
cancelInteractAnimationBooleanfalseWhether to cancel the interact animation when a player interacts with the NPC.
Gemeinsame TypeWriter-Felder (displayName)
FeldTypStandardBeschreibung
displayNameVar<String>——