Skip to content
lsl.devlsl.devLSL Dev

DATA_SIM_STATUS

constant
Constant
integer DATA_SIM_STATUS = 6;

Constant groups

SimulatorData

Other SimulatorData values (2)

Returns one of these strings.

  • “up”: simulator currently up and running
  • “down”: simulator currently down
  • “starting”: simulator currently starting
  • “stopping”: simulator currently stopping
  • “crashed”: simulator has crashed
  • “unknown”: simulator status unknown or unknown simulator
Example 1
5 collapsed lines
key queryData;
default
{
// querry immediately for simulator data on current status of sim.
state_entry()
{
queryData = llRequestSimulatorData( llGetRegionName(), DATA_SIM_STATUS );
}
24 collapsed lines
// if another owner or the region changes where the script operates in reset script
changed( integer isChanged )
{
if( isChanged & CHANGED_REGION )
{
llResetScript();
}
if( isChanged & CHANGED_OWNER )
{
llResetScript();
}
}
// how to handle the query information.
dataserver( key queryID, string info )
{
if( queryID == queryData )
{
// output to upper case characters the current state of the sim.
llOwnerSay( "This region is currently: " + llToUpper(info) );
}
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from DATA SIM STATUS, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.