|
Oberon Onmura
Registered User
Join date: 28 Dec 2006
Posts: 125
|
12-31-2008 18:02
I'd like to be able to rez, say, 50 items, and have them numbered 1-50. Can anyone suggest a way to do this?
Thanks!
|
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
12-31-2008 20:01
use the start_param to change the object name (put a script into the rezzed object) e.g.
in the rezzed object: on_rez(integer start_param) { if (start_param > 0) { llSetObjectName(llGetObjectName() + " " + (string)start_param); }
and use the rezzing object to set the start parameter (last argument) in llRezObject
_____________________
http://slurl.com/secondlife/Together
|
|
Ollj Oh
Registered User
Join date: 28 Aug 2007
Posts: 522
|
12-31-2008 20:22
I once solved this primitively via llSay(): A rezzed object says that its rezzed and says its key to want a number assigned to it. Then a counting object replies with an incremented number and the same key. And if an object hears its objectkey it knows its number.
On_rez(integer start_param) is more failsafe while llSay is faster and wasting more ressources.
|
|
Oberon Onmura
Registered User
Join date: 28 Dec 2006
Posts: 125
|
01-01-2009 16:32
From: Escort DeFarge use the start_param to change the object name (put a script into the rezzed object) e.g.
in the rezzed object: on_rez(integer start_param) { if (start_param > 0) { llSetObjectName(llGetObjectName() + " " + (string)start_param); }
and use the rezzing object to set the start parameter (last argument) in llRezObject Thanks so much, Escort. That worked like a charm!
|