Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting a worn object

Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
07-11-2007 10:35
Hi,

I can't seem to find a command in the wiki that can detect if an avi is wearing (holding) a particular object (prim), or not. Does one exist?

Thanks

Rock
PennyWhistle Cameron
Velocity Girl
Join date: 28 Jun 2006
Posts: 178
07-11-2007 10:45
From: Rock Vacirca
Hi,

I can't seem to find a command in the wiki that can detect if an avi is wearing (holding) a particular object (prim), or not. Does one exist?

Thanks

Rock


This isn't a scripting answer, but you can Control/Alt/T and see what prims they're wearing.
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
07-11-2007 10:57
From: PennyWhistle Cameron
This isn't a scripting answer, but you can Control/Alt/T and see what prims they're wearing.


Thanks for the suggestion PennyWhistle, but I need a script in an object that will detect if an avi is carrying a particular prim or not, such as access to certain areas, facilities etc if you are carrying a Gold Card (but not by using groups).

Rock
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
07-11-2007 11:17
thinking aloud, the prim being worn could be scripted, and it could Say something on a specific channel that the detector is listening to. Could this be a way?

Rock
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
07-11-2007 11:22
Yes that would work. Or it could wait until prompted to say something - like some kind of authentication challenge and response.
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
07-11-2007 11:32
You could always have the area prompt them to 'scan their card' which would mean they need to attach it, and have it say on a hidden channel a passcode of some kind.

You could set whatever you have that is preventing access to that area either add them to the temporary access list to keep them from being booted, or have it open the door, etc.

I think you might even be able to make it where the card uses a sensor that looks for security item and then shoots an e-mail to it.

The latter would take a good while longer, but it all depends on the particular need.