LlGetSimulatorHostname/fr - Second Life Wiki

LlGetSimulatorHostname/fr

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Fonction: string llGetSimulatorHostname( );

Renvoie un string correspondant au nom de la machine exécutant le script (identique au nom visible dans la page d’aide du client)


Inconvénients

  • Cette fonction fait dormir le script pendant 10.0 secondes.

Exemples

 
// Début d’un script d’informations sur une région
string region;
string sim;
 
default
{
    state_entry()
    {
        llSetTimerEvent(1.0);
    }
    timer()
    {
        string here = llGetRegionName();
        if(region != here)
        {
            sim = llGetSimulatorHostname();
            region = here;
        }
        llSetText(
                "  NOM REGION : " + region + 
              "\n NOM SIM : " + sim + 
              "\n DILATION TEMPORELLE: " + (string)llGetRegionTimeDilation() +
              "\n FPS REGION: " + (string)llGetRegionFPS(),
            <0,1,0>, 1.0};
    }
}
 

Voir également

Fonctions

•  llGetRegionFPS Renvoie le nombre d’images par secondes d’une région.
•  llGetRegionTimeDilation Renvoie la dilatation temporelle

Articles

•  Simulator IP Addresses Adresse IP des simulateurs