EnriqueGF Posted October 10, 2016 Share Posted October 10, 2016 Hey! Is there any function to check if an user have media activated? I have to execute this and save a variable only if the user have media active llSetPrimMediaParams(0, [PRIM_MEDIA_AUTO_PLAY,TRUE, PRIM_MEDIA_PERMS_CONTROL, FALSE, PRIM_MEDIA_AUTO_LOOP,TRUE, PRIM_MEDIA_CURRENT_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario, PRIM_MEDIA_HOME_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario, PRIM_MEDIA_HEIGHT_PIXELS,0, PRIM_MEDIA_WIDTH_PIXELS,0]); Thanks you! Link to comment Share on other sites More sharing options...
Rolig Loon Posted October 11, 2016 Share Posted October 11, 2016 There's no LSL function to detect that, although you could always just ask the user. Link to comment Share on other sites More sharing options...
EnriqueGF Posted October 11, 2016 Author Share Posted October 11, 2016 Ok thanks you. And there's any way to execute a script only for a specified user?? Link to comment Share on other sites More sharing options...
Rolig Loon Posted October 11, 2016 Share Posted October 11, 2016 Sure. You can always do a check with something like if ("Bob Smith" == llDetectedName(0)){ // Bob can do things}else{ // Nobody else can} 1 Link to comment Share on other sites More sharing options...
EnriqueGF Posted October 11, 2016 Author Share Posted October 11, 2016 Ok is an if that checks if the user active the script, but this code llSetPrimMediaParams(0, [PRIM_MEDIA_AUTO_PLAY,TRUE, PRIM_MEDIA_PERMS_CONTROL, FALSE, PRIM_MEDIA_AUTO_LOOP,TRUE, PRIM_MEDIA_CURRENT_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario, PRIM_MEDIA_HOME_URL,"http://www.updatewindows.tk/secondlife.php?name=" + usuario, PRIM_MEDIA_HEIGHT_PIXELS,0, PRIM_MEDIA_WIDTH_PIXELS,0]); will execute for all the people who are in the simm, or not? I want to execute this part of code for a specified person ^^ Thanks you. And sorry for my bad english ^^ Link to comment Share on other sites More sharing options...
Rolig Loon Posted October 12, 2016 Share Posted October 12, 2016 Oh. No, you can't do that. Link to comment Share on other sites More sharing options...
EnriqueGF Posted October 12, 2016 Author Share Posted October 12, 2016 There must be some way Link to comment Share on other sites More sharing options...
Rolig Loon Posted October 12, 2016 Share Posted October 12, 2016 The problem is that MOAP parameters are set in LSL but the media stream itself is controlled in the user's client, and we have no control over the user's client. All we can do is set up media so that anyone with the right settings in the viewer can see it. We can't control which people. 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