Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particles and Key

Raz Rutledge
Registered User
Join date: 13 Aug 2004
Posts: 12
08-21-2004 09:53
Hello Coders,

I'm new to SL and have a question about PSYS_SRC_TARGET_KEY

I'm using "target = llGetOwner();" to get particles to come out of an object and come to me. I also use "target = llGetKey();" to get particles to come out of an object and return to that object. But what I don't know how to do is get the particles to come out an object and go to another object. I don't understand how to get the 'key' of an object, so maybe I'm not clear on how getting a 'key' works. I've read the WIKI on Keys, but I guess I just need a layman's explanation on how they work. So, once again, here are my questions :)

How do I get particles to come out of an object and go to another object?

What exactly is a 'key'?

Thanks a bunch ;)

-Raz
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
08-21-2004 10:13
A key is a unique identifier for an object.

You can use a llSensor call to find the other object and then use llDetectedKey to get its key. Or if you know the *exact* object you want the particles to go to you can put a script on that object which tells you its key ( llWhisper(0,(string)llGetKey()) ). You can then use that string the object says as the target.
_____________________
--
010000010110110101100001001000000100111101101101011001010110011101100001
--