Difference between revisions of "LlRequestSimulatorData"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 7: Line 7:
|return_text=that is the handle for a {{LSLG|dataserver}} event response.
|return_text=that is the handle for a {{LSLG|dataserver}} event response.
|spec
|spec
|caveats=* As of July-2008 this function is broken for scripts in most sims (see [https://jira.secondlife.com/browse/SVC-2596]).
|caveats
|constants={{{!}} {{Prettytable}}
|constants={{{!}} {{Prettytable}}
{{!}}- {{Hl2}}
{{!}}- {{Hl2}}
Line 27: Line 27:
|also_articles
|also_articles
|notes
|notes
|issues=
{{Bug|SVC-2596|Script [[dataserver]] events become permanently blocked until sim restart (as a result of calling [[llRequestSimulatorData]])}}
|cat1=Dataserver
|cat1=Dataserver
|cat2=Region
|cat2=Region

Revision as of 09:31, 6 July 2008

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 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" Parcel lght G.png General
"MATURE" Parcel lght M.png Moderate
"ADULT" Parcel lght A.png Adult
"UNKNOWN" 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 );