sndbad Ghost Posted June 21, 2016 Share Posted June 21, 2016 mmmm i think is not hard but i want know what happenedi want get owner name for objectits work fine but when owner logout from SLdos not workjust thisdefault { touch_start(integer total_number) { llSay(0, llKey2Name(llGetOwner())+ " Touched."); } } Link to comment Share on other sites More sharing options...
Innula Zenovka Posted June 21, 2016 Share Posted June 21, 2016 If you look at the Wiki entry for llKey2Name, you will see it works for avatars only if they are in the same region, or an adjacent region, or for about 30 seconds or so after they leave the region. So, this is expected behaviour. If you want to know the name of the avatar whether or not she's on the region (or even logged in) you need llRequestAgentData, . You will see there's a sample script there that shows you how to use that function (it's a bit more complicated than llKey2Name()), 1 Link to comment Share on other sites More sharing options...
Rolig Loon Posted June 21, 2016 Share Posted June 21, 2016 Right. llKey2Name only works if the person is in the same region or has only left it within the past 10 seconds or so, Use llRequestAgentData and the parameter DATA_NAME instead. It's a minor nuisance, because you'll have to run it through a dataserver event, but it works. 1 Link to comment Share on other sites More sharing options...
sndbad Ghost Posted June 21, 2016 Author Share Posted June 21, 2016 thank you so much i fix it Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now