Actions
Requires API Version 1.0.0 or higher
The Actions API gives you access to actions sent across the system and to the resource pack.
Functions
luniris.action(key, argument)
function luniris.action(key, argument)
-- Receive actions in real time
end
One Declaration Only
This function can only be declared once in your entire codebase.
Receives actions in real time from Luniris app features.
Example
function luniris.action(key, argument)
-- "Happy" action
if key == "4ad30f21-07dc-43ad-8912-cf1e8feb4115" then
currentEmote =
currentEmote == "happy" and "normal" or "happy"
-- "Show text on screen" action
elseif key == "f4f127bc-c368-415d-b5d9-c5d00276e0a1" then
displayTextOnScreen = not displayTextOnScreen
textToDisplay = argument
end
end