im making a teleport device.
one object has this simple script inside:
default
{
state_entry()
{
vector position = llGetPos();
llRegionSay(-444, (string)position);
}
}
The second object has a number if coding, but in short i want it to listen to the above.
So near the top we have this:
vector position = <0,0,0>;
default
{
state_entry()
{
llListen(-444,"","",""
;}
listen(integer x, string name, key id, string msg)
{
if (llGetOwnerKey(id) == llGetOwner())
llOwnerSay(msg); // this outputs the llGetPos from script 1
}
}
i then thought about changing
vector position = <0,0,0>;
to
vector position = msg;
but got syntax error.
Scratches head
I've tried llGetObjectName, llSetObjectName too. But SL throws a systax wobbly!!