Skip to content

Launch Url

Launch Url

Opens a web address in the player's default browser.

Properties

System

Name Explanation Type
URL The web address to open in the player's default browser. Variable or Value

Examples

Open a Website

Opens a specific web address in the player's default browser.

launch_url("https://www.example.com");
{"Data":{"Url":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"https://www.example.com","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.LaunchUrlCommand"}

Open a URL from a Variable

Opens the web address stored in global variable 0 in the player's default browser.

launch_url($gv[0]);
{"Data":{"Url":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.LaunchUrlCommand"}