|
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
|
10-30-2007 11:26
I have seen scripted objects that tell you if an avatar is online, but can't seem to find what function they use. Have not been able to find it in the Wiki. Any suggestions?
I'm exploring this as a way to reset a timer each time an avatar logs on.
_____________________
 VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30 http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240 http://shop.onrez.com/Archtx_Edo
|
|
Daten Thielt
Registered User
Join date: 1 Dec 2006
Posts: 104
|
10-30-2007 11:36
getting an avatars online status is done using the llRequestAgentData(key av,DATA_ONLINE); command, example code would be default { state_entry() { llRequestAgentData(llGetOwner(),DATA_ONLINE); } dataserver(key req, string data) { if(data == "1"  { llSay(0, "owner is online"  ; } else { llSay(0, "owner is offline"  ; } } }
|
|
Shyan Graves
Registered User
Join date: 10 Feb 2007
Posts: 52
|
10-30-2007 11:39
Hi, use function llRequestAgentData with constant value DATA_ONLINE. see link to WiKi: Shyan
|