is there away to detected a collision with a object with a certain name so it will only detect collisions with a object with a certain name
if it can be done can some one post a example script plz
These forums are CLOSED. Please visit the new forums HERE
is there away to do this |
|
|
XShade Foley
Registered User
Join date: 11 Feb 2006
Posts: 12
|
05-05-2006 17:14
is there away to detected a collision with a object with a certain name so it will only detect collisions with a object with a certain name
if it can be done can some one post a example script plz |
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
05-05-2006 18:04
llCollisionFilter(string name, key id, integer accept) is the function you need to use. It works sorta like the llListen() function. <accept> is TRUE to accept collisions only with the name or key, and FALSE is to accept collisions with all BUT the name or key passed to the function.
|
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
05-05-2006 18:13
This looks like a job for the Detected functions. The one you want to use here is probably llDetectedName();. A quick example script:
CODE string targetname = "XShade Foley" ; _____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?" |
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
05-05-2006 18:13
llCollisionFilter! I forgot about that one. I'm going senile.
![]() _____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?" |
|
XShade Foley
Registered User
Join date: 11 Feb 2006
Posts: 12
|
05-05-2006 18:20
ok thank you
|