🗺️ map_ChangeMap(command)
Change de carte selon la commande fournie. Supports: 'left', 'right', 'top', 'bottom', 'goto:mapId', 'havenbag'.
map_ChangeMap(command)
MapChange de carte selon la commande fournie. Supports: 'left', 'right', 'top', 'bottom', 'goto:mapId', 'havenbag'.
Paramètres
| Paramètre | Type | Description |
|---|---|---|
command |
string | La commande de déplacement (ex: 'left', 'right', 'goto:123456', 'havenbag') |
Valeur de retour
Aucun
Exemple
function example_mapchangemap()
-- Changer de carte
map_ChangeMap("left")
global_Delay(2000)
-- Aller à une carte spécifique
map_ChangeMap("goto:123456")
global_Delay(3000)
-- Entrer dans le havre-sac
map_ChangeMap("havenbag")
global_Delay(2000)
end
-- Appeler la fonction
example_mapchangemap()