2016-12-15 22:02:45 -08:00
2016-12-15 17:08:16 -08:00
2016-12-15 16:41:24 -08:00
2016-12-15 16:41:24 -08:00
2016-12-15 16:41:24 -08:00
2016-12-15 16:41:24 -08:00
2016-12-15 16:41:24 -08:00

Emote - a player emote API ##########################

This mod aims to provide an API for player model animations such as sitting, waving, lying down, as well as some providing chat commands for the player to use these "emotes".

API

The emote API consists of several functions that allow mods to manipulate the emote state of each player.

bool emote.start(player, emotestring)

Start the named emote for the named player. Returns false if the emote is unknown or the emote could not be started. Returns true otherwise.

emote.stop(player)

Stops any emote for the named player.

emote.list()

Lists known emotestring values.

Commands

The emotes are all usable by players using chat commands: /lay, /sleep, /sit, /point, /freeze, etc.

TODO

The API currently only allows unattached emotes (ones where the player can just move and cancel the emote). The API needs to provide an additional function to allow attached emotes with rotation and offset so that players can easily sit on chairs, lie on beds or emote-interact with machines (e.g. point emote when interacting with a node).

License

LGPL-2.1

Description
No description provided
Readme 221 KiB
Languages
Lua 100%