The function `llGetSimulatorHostname()\ has a 10 seconds delay. It's maybe good in SL or for region owners renting parcels, but not for region owners.
Taken from the SL Wiki, llGetEnv() gives the same result without delay.
// llGetEnv now offers an equivalent function without the 10 second delay.
SaySimulatorHostname()
{
llOwnerSay("Simulator Hostname: " + llGetEnv("simulator_hostname") );
}
default
{
on_rez(integer start_param)
{
SaySimulatorHostname();
}
changed(integer iChange)
{
if (iChange & (CHANGED_REGION_START|CHANGED_REGION))
SaySimulatorHostname();
}
state_entry()
{
SaySimulatorHostname();
}
}