Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Update object in object Question

skidz Tweak
Registered User
Join date: 18 Apr 2006
Posts: 42
10-13-2006 12:20
Is there any way, via a script, to update an object with scripts that is inside another object.
I can use llRemoteLoadScriptPin to update scripts in the root object, but when I try llGiveInventory the object I updated becomes completely disabled (like it has no script) when it is rezzed.

Thx in advance

___| |/(_)__||____
(_-<| <| | _ |>-_/
/ /|_|\|_|___|\__\
__/ Skidz Tweak
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
10-13-2006 13:32
Not sure what you`re asking.

If you give a script with llGiveInventory() or llGiveInventoryList(), it arrives dead. This is also true for scripts given by people to objects that are flagged to allow inventory droped into them by anyone.

It you want a script to be live when it arrives, you must use llRemoteLoadScriptPin().

This is a deliberate security feature. You wouldn`t want just anyone to be able to stuff a live script into one of your objects, would you?

Now what are you talking about with respect to your first sentance?

skidz Tweak
Registered User
Join date: 18 Apr 2006
Posts: 42
clarify
10-13-2006 13:54
Well, I have a product (lets call it A), and it rezes an object as part of its function (lets call it B), which also has scripts in it.
I am writing an update package for the product to update A, but I can not figure out anyway to update B and have it work afterwards.

I know how to update scripts just fine in A, but can not figure out a way to replace B with a new version of B inside of A.
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
It Just Does Not Work
10-13-2006 14:50
From: skidz Tweak
I know how to update scripts just fine in A, but can not figure out a way to replace B with a new version of B inside of A.
Ah.

You can`t.

You have to:
  1. Make a replacement B by hand [it is OK to modify a copy of B that you kept in your oinventory],
  2. Tell A to delete the old unmodified B.
  3. Give A a copy of the new B.
You cannot update the inventory of an item in inventory, period.