User:Fred Rookstown/llRequestDatashare
From Second Life Wiki
Second Life Wiki > User:Fred Rookstown > User: Fred Rookstown/llRequestDatashare
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
| | LSL Feature Request |
| The described function does not exist. This article is a feature request. |
Contents |
Summary
Function: integer llRequestDatashare( key agent, string service_id, integer service_revision_req );| REQUEST | Function ID |
| Delay | |
| N/A | Energy |
Attempts to open a datashare channel on the specified agent for the specified service, if available.
Returns an integer datashare resource pointer
| • key | agent | – | Key of target agent | |
| • string | service_id | – | Name of service to connect to | |
| • integer | service_revision_req | – | Ensures that the service is at least this version before allowing the datashare to open. |
Examples
integer datashare; // Datashare pointer default { state_entry() { // Open a datashare with no service version check. datashare=llRequestDatashare(llGetOwner(),"Some Service",0); } }

