PLATFORM
Platform detection (client, browser, mobile).
Availability: Client & Server
Methods
PLATFORM.isBrowser
client server
Check if the script is running in a web browser
Signature: bool action()
Returns: bool - True if running in browser (not mobile, not desktop client)
bool result = GAME.PLATFORM.isBrowser();
PLATFORM.isClient
client server
Check if the script is running on the desktop client
Signature: bool action()
Returns: bool - True if running on desktop client
bool result = GAME.PLATFORM.isClient();
PLATFORM.isMobile
client server
Check if the script is running on a mobile device
Signature: bool action()
Returns: bool - True if running on mobile
bool result = GAME.PLATFORM.isMobile();