LlRequestSimulatorData

From Second Life Wiki

Second Life Wiki > LSL Portal > Built-in Functions > LlRequestSimulatorData
Jump to: navigation, search

Contents

Summary

Function: key llRequestSimulatorData( string region, integer data );
293 Function ID
1.0 Delay
10.0 Energy

Requests data about region. When data is available the dataserver event will be raised.
Returns a key that is the handle for a dataserver event response.

• string region Case sensitive region name.
• integer data DATA_* flag
data Constant Type Description
DATA_SIM_POS 5 (vector) The regions global position.
DATA_SIM_STATUS 6 string Value Description
"up" region currently up and running
"down" region currently down
"starting" region currently starting
"stopping" region currently stopping
"crashed" region has crashed
"unknown" region status unknown or unknown region
DATA_SIM_RATING 7 string Value Maturity rating
"PG" File:Parcel_lght_G.png General
"MATURE" File:Parcel_lght_M.png Moderate
"ADULT" File:Parcel_lght_A.png Adult
"UNKNOWN" rating or region unknown

Caveats

  • This function causes the script to sleep for 1.0 seconds.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

All Issues

~ Search JIRA for related Issues
   Script dataserver events become permanently blocked until sim restart

Tests

•  llRequestSimulatorData Test
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools
In other languages