Log inGet started
Package

Villager.component

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

Villager

Put it on any NPC entity to make it a villager the local player can befriend. Fields: villagerId (a villager data asset id or one from Friends.defineVillager), range (metres to talk or gift, 2.6), headHeight (where the meter, name and emotes float, 2.1), prompt (auto, builtin, interactKit), faceTalker (turn toward the player who talks, on their screen). It shows the meter over the head, a Talk and Gift prompt in reach (F and R, gamepad A and d-pad up, big buttons on touch; never E, digits or d-pad left/right), and opens the conversation, the gift picker and the reaction emote. With interactKit handed to Friends.setup({ kits = ... }) the Talk prompt is interactKit's Interactable. Spawns the FriendshipHUD for you.