Here have some functions

unit:GetDistance(x, y, z)
unit:HandleEmoteCommand(uint32 emote)
global function FindUnit()
global function SaveAllPlayers()