饥荒联机版

饥荒联机版

评价数不足
[API] Mod Emote
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
8.935 KB
2016 年 11 月 19 日 下午 2:33
2016 年 11 月 29 日 下午 7:35
4 项改动说明 ( 查看 )

订阅以下载
[API] Mod Emote

描述
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.