|
Awnee Dawner
object returned to sim
Join date: 7 Apr 2008
Posts: 206
|
10-17-2008 11:36
hey! a simple script to detect the "on sim status" of your friend create a cube, put the script in, ask your friend to touch the cube, voila - no need to know the avatar key key agent=NULL_KEY; string myAgent=" "; default { state_entry() { } touch_start(integer n) { agent=llDetectedKey(0); myAgent=llKey2Name(agent); if(myAgent=="yourFriendsName"  { llSetText(myAgent,<1.0,1.0,1.0>,1.0); llSetTimerEvent(10.0); } } timer() { if(llGetAgentInfo(agent)) { llSetText(myAgent + "\n" + "Online",<1.0,1.0,1.0>,1.0); } else { llSetText(myAgent + "\n" + "Offline",<1.0,1.0,1.0>,1.0); } } }
_____________________
>> yes <<
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
10-20-2008 00:09
this requires your friend to touch the object, why not just use w-hat.com/name2key to get the key you want, then setup your timer? No need to have friend touch your object.
_____________________
My tutes http://www.youtube.com/johanlaurasia
|
|
Awnee Dawner
object returned to sim
Join date: 7 Apr 2008
Posts: 206
|
10-20-2008 10:18
hey! From: Johan Laurasia this requires your friend to touch the object yes thats what ive said, so the friend has the choice to activate the device.
_____________________
>> yes <<
|