Jump to content

Northmani

Resident
  • Posts

    3
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. That's great thank you. It now attaches when its rezzed, then it detaches when you leave sim. But it doesn't auto reattach when you re-enter (if having accepted experience permissions), any ideas? default { state_entry() { llRequestPermissions( llGetOwner(), PERMISSION_ATTACH ); } run_time_permissions( integer vBitPermissions ) { if( vBitPermissions & PERMISSION_ATTACH ) { llAttachToAvatarTemp( ATTACH_HUD_TOP_RIGHT ); } else { llOwnerSay( "Permission to attach denied" ); } } on_rez(integer rez) { if(!llGetAttached()) { //reset the script if it's not attached. llResetScript(); } } attach(key AvatarKey) { if(AvatarKey) {//event is called on both attach and detach, but Key is only valid on attach integer test = llGetAttached(); if (test) { llOwnerSay( "The object is attached" ); } else { llOwnerSay( "The object is not attached"); } } } changed (integer change){ if(change & CHANGED_REGION){ llDetachFromAvatar(); } } }
  2. Thanks for the help everyone, though I'm fairly sure I'm putting this in the wrong place since I'm getting; (38, 0 ) : ERROR : Syntax error, default { state_entry() { llRequestPermissions( llGetOwner(), PERMISSION_ATTACH ); } run_time_permissions( integer vBitPermissions ) { if( vBitPermissions & PERMISSION_ATTACH ) { llAttachToAvatarTemp( ATTACH_HUD_TOP_RIGHT ); } else { llOwnerSay( "Permission to attach denied" ); } } on_rez(integer rez) { if(!llGetAttached()) { //reset the script if it's not attached. llResetScript(); } } attach(key AvatarKey) { if(AvatarKey) {//event is called on both attach and detach, but Key is only valid on attach integer test = llGetAttached(); if (test) { llOwnerSay( "The object is attached" ); } else { llOwnerSay( "The object is not attached"); } } changed (integer change){ if(change & CHANGED_REGION){ llDetachFromAvatar(); } } } }
  3. Hi everyone, I'm a beginner scripter, looking for some advice. I've created a HUD that I am looking to attach to visiting Avatars to my sim, then to detach when they leave the sim. Im wondering how this could be made possible. Any advice welcome, I have experiences set up on my region already just need the attach and detach assist please.
×
×
  • Create New...