-
Notifications
You must be signed in to change notification settings - Fork 94
set_url
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Set URL description: published: true date: 2023-03-16T23:11:37.776Z tags: editor: markdown dateCreated: 2023-03-16T22:29:29.437Z
The setUrl native AI script function is used to set the name and URL of an action in the bot's right-click context menu. When the player clicks on the action in the menu, the URL is opened in the in-game browser.
()setUrl(actionName: s, url: s)
- actionName (string): The name of the action that will be displayed in the context menu when the player mouses over it.
- url (string): The URL that will be opened in the in-game browser when the player clicks on the action.
()setUrl("Click on Me", "https://www.example.com/script.php");
This example code sets the name of the action in the bot's context menu to "Click on Me" and the URL to "https://www.example.com/script.php".