Jump to content

kevinshero77

Resident
  • Posts

    19
  • Joined

  • Last visited

Posts posted by kevinshero77

  1. Ok thanks, I'll tinker with it over the next few days and try running it at higher locations where stuff is less likely to get in the way maybe, but the fact that it's mostly working now is a big relief! The last part I wish to do I believe no LSL function exists for, is there by any chance a way to call an external application that to launch on the PC outside of secondlife?

  2. I had a significant breakthrough today. I realized the function is working much of the time but only if the camera is facing forward. If the camera is facing backward or sideways it looks like no change happened at all. In forward view I think it is trying to zoom on all avatars however sometimes it just looks at the side of a hill or something even if they are in range of nearby chat, but at least I can see some progress! Thank you to everyone who has been helping me try to figure this out.

  3. Thanks! This thing is a real pain. It has worked for a couple of avatars I selected but not for the majority. I can use the viewer zoom in on all (I pick them from nearby). I'm stumped, all I can think of is maybe it thinks the coordinates are not valid for some reason. Maybe the viewers are using a custom function they wrote themselves rather than this one?

  4. O finally it is beginning to work, I'll clean this up later but it is now consistently changing the camera position


    key AviKey="MY UUID GOES HERE";
    key target_key;
    default
    {
        state_entry()
        {
            llSay(0, "Hello, Avatar!");
            llRequestPermissions(AviKey, PERMISSION_CONTROL_CAMERA); 
        }

        touch_start(integer total_number)
        {
        llRequestPermissions(AviKey, PERMISSION_CONTROL_CAMERA); 
        if (llGetPermissions() & PERMISSION_CONTROL_CAMERA)
        {
           vector camera_offset = <1.0, 0.0, 0.0>; 
           target_key = "TARGET UUID GOES HERE";
           
           list tempvar1 = llGetObjectDetails (target_key, [OBJECT_POS]); // type mismatch so I had to alter this
           vector target_position = llList2Vector(tempvar1, 0);
           tempvar1 = llGetObjectDetails (target_key, [OBJECT_ROT]); // type mismatch so altered
           rotation target_rotation = llList2Rot (tempvar1, 0);
           

    llSetCameraParams 
    ([
            CAMERA_ACTIVE, TRUE, // TRUE == 1 is active, FALSE == 0 is inactive
            CAMERA_FOCUS, target_position + <0.0, 0.0, 0.5>, // region relative position and 0.5m higher
            CAMERA_FOCUS_LOCKED, TRUE, // (TRUE or FALSE)
            CAMERA_POSITION, target_position + (camera_offset * target_rotation), // the offset adjusted to take into account the direction the target is facing
            CAMERA_POSITION_LOCKED, TRUE // (TRUE or FALSE)
    ]);
            llSay(0, "Touched.");
        }
            
        }
    }

    • Like 1
  5. I have validated the permissions are granted because when I click the cube it does stay touched but unfortunately the camera remains unchanged even if I click it many times, stand up, sit back down etc

     

    default
    {
        state_entry()
        {
            llSay(0, "Hello, Avatar!");
            llRequestPermissions(AviKey, PERMISSION_CONTROL_CAMERA); 
        }

        touch_start(integer total_number)
        {
        llRequestPermissions(AviKey, PERMISSION_CONTROL_CAMERA); 
        if (llGetPermissions() & PERMISSION_CONTROL_CAMERA)
        {
            llClearCameraParams();
            llSetCameraParams([
            CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
            CAMERA_FOCUS, <1,0,0>, // region relative position
            CAMERA_FOCUS_LOCKED, TRUE, // (TRUE or FALSE)
            CAMERA_POSITION, <190.119, 255.204,95.770> ,
           CAMERA_POSITION_LOCKED, TRUE // (TRUE or FALSE)
           ]);
            llSay(0, "Touched.");
        }

        }
    }

     

     

    I tried to put the hard coded coordinates in Camera Focus too just to see if it did anything but I also saw no change in camera there. I tried TRUE and FALSE for the locked. The function seems to be very difficult to get to activate the camera for some reason.
            

  6. HI yes this is in a cube I am sitting on. I tried the target avatars position first but since it didn't do anything I started manually typing in coordinates in an attempt to get the function to work at the most basic level. If I am not sitting on the cube I do get a debug warning. If sitting on the cube I don't get the permissions error but nothing happens except every one in  a great while it will work maybe 1 out of 20 times. When it works the camera stays locked in place, so I log off and log back in and try again once it worked twice in a row but then never worked again in tries after that. I try with the above function and report back if anything changes.

  7. I tried for a couple more hours but I can't get the function to work. Very occasionally it will work in the SL official viewer I think I got it to work twice. I'm manually typing in coordinates of a box across the room so I can't seem to figure out why the function won't work.

     

    default
    {
        state_entry()
        {
      
            llRequestPermissions(AviKey, PERMISSION_CONTROL_CAMERA); 
            llClearCameraParams();
            llSetCameraParams([
                CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
                CAMERA_FOCUS, <0,0,5>, // region relative position
                CAMERA_FOCUS_LOCKED, TRUE, // (TRUE or FALSE)
                CAMERA_POSITION, <190.119, 255.204,95.770> , // region relative position
                CAMERA_POSITION_LOCKED, TRUE // (TRUE or FALSE)
                ]);
            llSleep (15);
        }

  8. So I tried to test with my two avatars (my main one JohnG and this test avatar). Unfortunately after a long time of fighting with it I discovered that llsetfunction would not work in firestorm (nothing happened) but it did change the camera in the classic viewer. By then I had switched to manual coordinates so I'll test more tomorrow with the actual script. Thanks for the help so far everyone.

  9. I am not a dancer but occasionally need to for a date. Should I just look for the balls above ppl heads or get a dance hud. Hoping not to put too much time into this as i wont use it a lot so if i buy something would be nice nit to have to run all over looking for dances

  10. I tried Gooseberry but I got kicked out after 20 seconds said I was not allowed, Evergarden I had same issue, I click Ride the HUD appeared but I am either standing on the horse or it throws me off and I cannot rhide it. I ask someone else to try and they had same issue. Maybe we have to buy a saddle or something? I didn't see a sign for group signup there.

  11. are there any free places where I can ride boats and horses. I went to to horse places but when I tride to ride the horses the HUD flashed off and the horse threw me off so I couldn't ride them. I went to a diving place but there was no boat. if no free boat rides is there someplace I can buy a kayak or rent it and go on the water? Any recommendations for places that are beginner friendly would be welcome. A lot of places are too complicated and I can't figure out what to do.

    • Like 1
  12. I have Lelukta head but I can only use the classic hairbases and it does not come with many. Most of the hair I found doesnt come with hairbase so I am finding it really hard to understand how to make these things work. Is there a good place to shop for men's hairbases or hair that comes with bases? I have been looking but it is very confusing.

×
×
  • Create New...