Jump to content

sb4u

Resident
  • Posts

    10
  • Joined

  • Last visited

Posts posted by sb4u

  1. I am trying to make a script that would enable me to attach then deattach it after.  This script itself would not work that well but it was a start.  My true aim, if possible, was to use a scripted HUD to change a sword from sheathed position to ready position, which comes down to changing the transparency of the sheathed object, then attaching a seperate sword on the other.  I am not sure how to make the HUD work with these other objects though.

  2. I tried the editor but with syntax checker I got these three results...Im still left wondering...

    1    } expected    new.lsl    26    26    
    2    } expected    new.lsl    29    10    
    3    Type or namespace definition, or end-of-file expected    new.lsl    42    1    




  3. Can anyone hellp with this script?  Keeps coming up with Syntax error.  I am new so its probably something obvious.

    default
    
    { 
        state_entry()
        {
            llRequestPermissions( llGetOwner(), PERMISSION_ATTACH );
        }
     
        run_time_permissions( integer vBitPermissions )
        {
            if( vBitPermissions & PERMISSION_ATTACH )
            {
                llAttachToAvatar( ATTACH_LHAND );
            }
            else
            {
                llOwnerSay( "Permission to attach denied" );
            }
        }
        
              touch_start(integer num_detected)
        {
            integer i = 0;
            for(; i<num_detected; ++i)
               llAttachToAvatar(ATTACH_RHAND);
                state hot;
    state hot{
        state_entry()
            { 
            touch_start(integer num_detected)
        {
             llAttachToAvatar(ATTACH_HUD_CENTER_2);
            state default;
        }
    }
               
      
               
    }
    }

     

×
×
  • Create New...