Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rez and Load Script

Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
03-08-2007 07:57
I am trying to build a 'box' which can build a large number of prims.
It needs to rez the object from inventory and load a script which in turn builds a different object and loads a further script.
How?
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
03-17-2007 02:04
Updating my own posting.
If a box has as its contents another box which contains both the script and can be scripted to rez a third box I think it will work.
Any comments?
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
03-17-2007 19:08
From: Gregory McLeod
Updating my own posting.
If a box has as its contents another box which contains both the script and can be scripted to rez a third box I think it will work.
Any comments?
Yes, that will work. But the third box won't be able to rez another box with the script. To do that you need to use llRemoteLoadScriptPin. Info on responsible self-replicating objects can be found here.
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
03-18-2007 13:35
Yes, I am fully aware of the dangers of recursive programming.
The point of my endeavours was to create a box which when opened would build a complete object populating it with lots of different scriptsand making it available to the new owner. I'm a game devloper and I need that to make it sellable.
Thanks for the tip though. I have been reading some of the library entries and came across one which builds a tree and branches, but it was no where near complicated enough to do what I want. Loading the scripts and the sub-boxes was starting to worry me though.
I think I have it straightened out now though.