From Second Life Wiki
RequestSimulatorData
llRequestSimulatorData
Description
Function: key llRequestSimulatorData( string simulator, integer data );
Requests data about simulator. When data is available the dataserver event will be raised.
Returns a key that is the handle for a dataserver event response.
| • string
| simulator
|
|
|
|
| • integer
| data
| –
| DATA_* flag
|
|
| data Constant
| Type
| Description
|
| DATA_SIM_POS
| 5
| (vector)
| The sims global position.
|
| DATA_SIM_STATUS
| 6
| string
| Value
| Description
|
| "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
|
| DATA_SIM_RATING
| 7
| string
| simulator rating "PG", "MATURE" or "UNKNOWN"
|
Caveats
- This function causes the script to sleep for 1.0 seconds.
Deep Notes
Issues
| • Open Bug
| SVC-2596[c]
|
| Script dataserver events become permanently blocked until sim restart (as a result of calling llRequestSimulatorData)
|