Log inGet started
World

Save Point

Branchmain
Branchesmain
Commit8937fc8d08

README.md

emotes

Four gestures a player makes with their own body: wave, cheer (both arms up), clap and point (at the screen). Each is a couple of seconds of arm motion made from the body's own rig through seating.pose, laid over whatever the body is doing: seated on a Seat the legs stay seated; standing still the body holds its stance, and walking off cancels it.

local Emotes = require("seating.emotes")
Emotes.list()            -- { { id = "wave", label = "Wave" }, { id = "cheer", ... }, { id = "clap", ... }, { id = "point", ... } }
Emotes.play("wave")      -- the local player's avatar; every peer sees it
Emotes.current(avatar)   -- the emote an avatar is making on this peer, or nil

Every peer that loads this module plays the gestures it hears: play poses the local avatar at once and sends seating.emote (the avatar, the emote, the session time it started) to the room. Seat requires it, so every peer in a room with a seat runs it. It binds no keys: a HUD calls play.