Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Better on_rez()

Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
02-26-2003 00:03
maybe like this:
CODE
on_rez(string name, key id, integer param)


Where the name and id are the name and id of whatever rezed the object. If it was pulled from inventory these are the owners name and id, if rezed with a llRezObject command in a script then they are the name and id of the object that rezed them.

Unless that information is already available in some way?

Also I think it would be more flexible if the parameter was a string. Because any number can be cast as a string, but not every string can be cast as a number.
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
Other methods
03-07-2003 01:34
Here are some other methods I would like to see:

llGetCreator() - returns the id of the creator of the object a script is attached to.

llGetOwner(key id) and llGetCreator(key id) - returns the owner and creator of the object with the ID. Would just return the same key if id is the key of an AV.

Object to Object IM is said to be in the works. For the state for recieveing IMs please pass in the Name, ID and message just like listens. I'm fairly sure that is what is intended, just stating the obvious.

llGiveInventory(key giveTo, key itemTogive, integer COPY | ORIGINAL) which gives an object in the inventory to a specified object or AV. The item in inventory should retain copy/no copy status, so that you can't give a copy of a no copy object.

llGetCopyable() - is this one possible already? Just a way to check whether the object the script is attached to is copyable. Modifable check would be nice too.

I'm sure I will think up more. :)

[edit] ok that didn't take long...

llGetRating(key id, integer BUILDING | AVATAR | SOCAIL) - returns the rating of the AV of the id, or owner of it.

llGetTotalMoney() - returns the amount of cash the owner of the scripted object has.



Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
Re: Other methods
03-07-2003 07:11
From: someone
Originally posted by Ama Omega

llGetRating(key id, integer BUILDING | AVATAR | SOCAIL) - returns the rating of the AV of the id, or owner of it.


Ugh, it's bad enough with people. I don't need lamp posts snubbing me too. ;)