Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting AV sitting on another prim

Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
03-04-2008 18:10
If a script in object A detects a collision with object B is there a way for the script to get the name of the AV that is sitting on object B? (for purposes of this discussion the AV sitting on object B is not the owner and we can not put a script in object B).

Any thoughts or suggestions?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-04-2008 18:24
I dunno about detecting the collision, but you can use a sensor to detect av's near object B and use llGetAgentInfo to see if they are sitting...
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
Humm
03-04-2008 18:49
Well yes, the issue I am having is how do I ensure that I know the AV that was sitting on Object B. There may be numerous other objects with av's sitting on them in the area. The "objects" are vehicles, btw. And there may be a lot of them very close together.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-04-2008 20:59
well I'll assume you don't have mod rights on object B, so can't drop scripts in it or link it to another scripted object... so the above is about as good as it gets
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Sundi Metropolitan
Registered User
Join date: 14 Sep 2005
Posts: 24
03-05-2008 05:58
Yes, that is correct.