Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MakeLocalPlayerEmote()

static void Terraria.GameContent.UI.EmoteBubble.MakeLocalPlayerEmote ( int emoteId)
inlinestatic

Definition at line 267 of file EmoteBubble.cs.

268 {
269 if (Main.netMode == 0)
270 {
271 NewBubble(emoteId, new WorldUIAnchor(Main.LocalPlayer), 360);
272 CheckForNPCsToReactToEmoteBubble(emoteId, Main.LocalPlayer);
273 }
274 else
275 {
276 NetMessage.SendData(120, -1, -1, null, Main.myPlayer, emoteId);
277 }
278 }
static void CheckForNPCsToReactToEmoteBubble(int emoteID, Player player)
static int NewBubble(int emoticon, WorldUIAnchor bubbleAnchor, int time)

References Terraria.GameContent.UI.EmoteBubble.CheckForNPCsToReactToEmoteBubble(), Terraria.Main.LocalPlayer, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.GameContent.UI.EmoteBubble.NewBubble(), and Terraria.NetMessage.SendData().

Referenced by Terraria.GameContent.UI.Elements.EmoteButton.LeftClick(), Terraria.GameContent.LucyAxeMessage.SpawnEmoteBubble(), Terraria.Player.UpdateHungerBuffs(), and Terraria.Player.UpdateStarvingState().