Usage
Syntax: player.platform
Returns string.
Explanation
Equivalent to getplatform(). Returns the platform that the player is using.
Possible return values are "win", "mac", "linux" and "iphone".
Example
function onCreated() { if (player.platform == "mac") { echo("You are using a Mac."); } }
... Will output "You are using a Mac." in RC chat (serverside) or the F2 window (clientside) if the player logs in using a Mac.
Categories
CategoryBuiltInVariable