Don't Starve Together

Don't Starve Together

Not enough ratings
[API] Mod Emote
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
8.935 KB
19 Nov, 2016 @ 2:33pm
29 Nov, 2016 @ 7:35pm
4 Change Notes ( view )

Subscribe to download
[API] Mod Emote

Description
This mod was created for modders to be able to add custom emotes to the game.

Usage:
local EMOTES = {
-- For more options for the data variable look in 'scripts/emotes.lua'
["enter emote name here"] = {
aliases = { "enter alias here", "enter another alias here" },
data = {
anim = { "enter animation here", "enter another animation here" },
randomanim = false, -- or true only if you don't care which animation is played.
mounted = false, -- or true only if you can do it while mounted.
}
},
}

for emote_name, emote_def in pairs(EMOTES) do
if v ~= nil then
GLOBAL.AddModEmote(modname, emote_name, emote_def)
end
end

On your mod description, mention you need this mod enabled in order to use your mod. This mod should always load first, once it loads you will have access to the above GLOBAL.AddModEmote function which will allow you to use your custom emotes in Don't Starve Together.