|
Kaveh Smirnov
Registered User
Join date: 17 Oct 2006
Posts: 20
|
01-26-2007 02:50
Can't find a function to create a prim from scratch. Any hints please?
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
01-26-2007 03:13
Every prim needs a creator, an agent. Once you create one prim with copy perms you can put it in another prim with a rez script and watch the replication! Rezzed prims can modify them selves in any way at all.
Watch the grey goo fence though!
|
|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
01-26-2007 07:24
You can't create a prim from scratch - you can only rez an object in inventory. So you have to set up the prims you want to create as items in the object's inventory in advance.
If you want to create arbiary prims, you need to use "nanoprims" - make a basic plywood cube, and put a script into it that listens on a hidden channel for data, and then uses that data for a call to llSetPrimitiveParams. Then, your main object can rez the nanoprim and then chat to it, on the hidden channel, telling it the settings it should have.
|