App
Contains functions for the current platform running the game.
Functions
isDesktop(target)
Returns true if the game is running on desktop.
Parameters
- target — Either the target Player, or client ID of the target player.
Returns
A boolean.
Example
Show a different tutorial if is not being run in desktop.
function onInteractStart(clientId)
if App.isDesktop(clientId) then
Speech.prompt("Hey! left click the mouse to shoot")
else
Speech.prompt("Hey! tap the shoot button on the screen to shoot")
end
-- for more info about dialogues go to the Speech module
end