# DATA_SIM_STATUS

*LSL constant*

```lsl
integer DATA_SIM_STATUS = 6;
```

Constant groups: [SimulatorData](/constants/groups/SimulatorData/)

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

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={1-5, 11-34}
key queryData;

default
{
    // querry immediately for simulator data on current status of sim.
    state_entry()
    {
        queryData = llRequestSimulatorData( llGetRegionName(), DATA_SIM_STATUS );
    }

    // 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) );
        }
    }
}
```

</details>

## See also

### Functions

- [llRequestSimulatorData](/functions/llRequestSimulatorData/)

---

*Source: [DATA SIM STATUS](https://wiki.secondlife.com/wiki/DATA_SIM_STATUS) on the Second Life Wiki. Content from the Second Life Wiki article DATA SIM STATUS (revision 1194637, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/DATA_SIM_STATUS/
