Hi I posted a thread yesterday about this but turns out what I thought was working properly isn't anymore. My question is about llGetObjectName (and i suspect llGetObjectDesc works the same way). I have the following script which I keep in my inventory:
integer rp_channel = -49023937;
default
{
state_entry()
{
string msg = llGetObjectName() + ":::" + (string)llGetKey() + ":::" + (string)llGetOwner() + ":::" + llGetObjectDesc();
llSay(rp_channel, msg);
}
}
The problem is llGetObjectName() returns the script's name rather than the object I placed the script in. Does anyone know why and how I can avoid this?
EDIT:
The problem seems to be in the script that listens to the the above llSay. It parses the list at ":::" and sends to it to a mod_python script. However, it appears that sometimes the name part is incorrect and it seems like it saves it from a previous listen. I know this problem is a bit vague, and it seems to be fixed every time I recompile the listener script but anyway I will try to post output if it happens again.