|
Domneth Dingson
Registered User
Join date: 20 Nov 2006
Posts: 126
|
08-25-2007 23:40
As per the title, any chance someone can give me a hand finding an example of what's needed to go about doing this? Maybe even some info, such as restrictions, etc.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
08-26-2007 00:10
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
08-26-2007 00:13
Here's a simple example--scripted object waits for a message in chat, then sends "Object" to the speaker. default { state_entry() { llListen(-87375, "", "", "send"  ; } listen(integer channel, string name, key id, string message) { llGiveInventory(id, "Object"  ; } }
|
|
Darko Lednev
Registered User
Join date: 20 Aug 2007
Posts: 31
|
08-26-2007 00:18
I think he wants an object to transfer its contents to another object. I don't think thats even possible.
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
08-26-2007 00:34
Be sure the receiving object is either owned by the same avatar that owns the object sending its inventory, or if the owner is different, the receiving object has set llAllowInventoryDrop(TRUE)
|
|
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
|
08-26-2007 01:03
Yes it is possible to use llGiveInventory() with objects as long as the permissions allow it, and the objects are both in the same sim... and note: even if you own both objects full perm, any scripts you give by this method will be set to non-running. To give running scripts, you will need to use llRemoteLoadScriptPin() (and llSetRemoteScriptAccessPin() in the receiving object)
|
|
Domneth Dingson
Registered User
Join date: 20 Nov 2006
Posts: 126
|
08-26-2007 07:21
Ok, thanks for the help guys. I'm actually planning on using it as a way for people to update a product of mine, yet still keep it no mod.
|