Difference between revisions of "LlRequestSimulatorData"

From Second Life Wiki
Jump to navigation Jump to search
Line 8: Line 8:
|spec
|spec
|caveats
|caveats
|constants={{{!}} {{Prettytable}}
|constants={{LSL_Constants/llRequestedSimulatorData}}
!Constant
!Value
!Description
{{!}}-
{{!}}{{LSLG|DATA_SIM_POS}}
{{!}}5
{{!}}returns a vector specifying the simulator's global position.
{{!}}-
{{!}}{{LSLG|DATA_SIM_STATUS}}
{{!}}6
{{!}}returns a string
{{!}}-
{{!}}{{LSLG|DATA_SIM_RATING}}
{{!}}7
{{!}}returns a string, either "PG", "MATURE" or "UNKNOWN"
{{!}}}
|examples
|examples
|helpers
|helpers

Revision as of 15:50, 21 February 2007

Summary

Function: key llRequestSimulatorData( string simulator, integer data );
1.0 Forced Delay
10.0 Energy

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

See dataserver for information about the return.

| DATA_SIM_POS | 5 | (vector) | colspan="4" | The regions global position. |- | rowspan="7" | DATA_SIM_STATUS | rowspan="7" | 6 | rowspan="7" | string ! Value ! colspan="3" | Description |- | "up" | colspan="3" | region currently up and running |- | "down" | colspan="3" | region currently down |- | "starting" | colspan="3" | region currently starting |- | "stopping" | colspan="3" | region currently stopping |- | "crashed" | colspan="3" | region has crashed |- | "unknown" | colspan="3" | region status unknown or unknown region |- | rowspan="5" | DATA_SIM_RATING | rowspan="5" | 7 | rowspan="5" | string ! Value ! colspan="3" | Maturity rating |- | "PG" | colspan="3" | Parcel lght G.png General |- | "MATURE" | colspan="3" | Parcel lght M.png Moderate |- | "ADULT" | colspan="3" | Parcel lght A.png Adult |- | "UNKNOWN"

| colspan="3" | rating or region unknown

Caveats

  • This function causes the script to sleep for 1.0 seconds.

Examples

Deep Notes

Signature

function key llRequestSimulatorData( string simulator, integer data );