<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Crystals+Galicia</id>
	<title>Second Life Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Crystals+Galicia"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/wiki/Special:Contributions/Crystals_Galicia"/>
	<updated>2026-06-08T04:43:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=LlAttachToAvatar&amp;diff=284642</id>
		<title>LlAttachToAvatar</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=LlAttachToAvatar&amp;diff=284642"/>
		<updated>2009-03-19T18:35:35Z</updated>

		<summary type="html">&lt;p&gt;Crystals Galicia: Why hasn&amp;#039;t anyone mentioned the parentless attachment bug yet? I see this daily.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{LSL_Function/permission|PERMISSION_ATTACH|grant=the owner}}{{LSL_Function&lt;br /&gt;
|func_id=113&lt;br /&gt;
|func_sleep=0.0&lt;br /&gt;
|func_energy=10.0&lt;br /&gt;
|func=llAttachToAvatar&lt;br /&gt;
|sort=AttachToAvatar&lt;br /&gt;
|p1_type=integer|p1_name=attachment|p1_desc=ATTACH_* constant or valid value (see the tables below)&lt;br /&gt;
|func_desc=Attaches the object to the avatar who has granted permission to the script. The object is taken into the users inventory and attached to the attach point &#039;&#039;&#039;attachment&#039;&#039;&#039;.&lt;br /&gt;
|func_footnote=If &#039;&#039;&#039;attachment&#039;&#039;&#039; is zero, then the object attaches to the attach point it was most recently attached to.&lt;br /&gt;
|return_text&lt;br /&gt;
|spec&lt;br /&gt;
|caveats=*The call will fail if the [[llGetPermissionsKey|avatar]] is not the [[llGetOwner|owner]] of the object being attached, even if [[PERMISSION_ATTACH]] has been properly granted.&lt;br /&gt;
*Two objects cannot be attached to the same attachment point at the same time.&lt;br /&gt;
*Objects attached to the head (and any attachment position within the head) will not be visible in First Person view (aka [[Mouselook]]) if &amp;quot;show attachments in mouselook&amp;quot; is disable.&lt;br /&gt;
*If &#039;&#039;&#039;attachment&#039;&#039;&#039; is zero but the object was never previously attached, it defaults to the right hand ({{LSL Const|ATTACH_RHAND|integer|6|c=right hand}}).&lt;br /&gt;
*Sometimes attachments put into the wearer&#039;s inventory by this function will become &#039;parentless&#039; -- that is, appear below the Library (outside the wearer&#039;s inventory) or nowhere at all. Detaching these will work, but it may cause the viewer to crash afterwards.&lt;br /&gt;
|examples=&lt;br /&gt;
&amp;lt;lsl&amp;gt;//-- rez object on ground, drop in this script, it will request permissions to attach,&lt;br /&gt;
//-- and then attach to the left hand if permission is granted. if permission is denied,&lt;br /&gt;
//-- then the script complains.&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llRequestPermissions( llGetOwner(), PERMISSION_ATTACH );&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    run_time_permissions( integer vBitPermissions )&lt;br /&gt;
    {&lt;br /&gt;
        if (PERMISSION_ATTACH &amp;amp; vBitPermissions)&lt;br /&gt;
        {&lt;br /&gt;
            llAttachToAvatar( ATTACH_LHAND );&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            llOwnerSay( &amp;quot;Permission to attach denied&amp;quot; );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    on_rez(integer rez)&lt;br /&gt;
    {&lt;br /&gt;
        if(!llGetAttached())&lt;br /&gt;
        { //reset the script if it&#039;s not attached.&lt;br /&gt;
            llResetScript();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    attach(key AvatarKey)&lt;br /&gt;
    {&lt;br /&gt;
        if(AvatarKey)&lt;br /&gt;
        {//event is called on both attach and detach, but Key is only valid on attach&lt;br /&gt;
            integer test = llGetAttached();&lt;br /&gt;
            if (test) {&lt;br /&gt;
                llOwnerSay( &amp;quot;The object is attached&amp;quot; );&lt;br /&gt;
            } else {&lt;br /&gt;
                llOwnerSay( &amp;quot;The object is not attached&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/lsl&amp;gt;&lt;br /&gt;
|helpers&lt;br /&gt;
|also_functions={{LSL DefineRow||[[llDetachFromAvatar]]|Detaches the object from the avatar}}&lt;br /&gt;
{{LSL DefineRow||[[llGetAttached]]|Gets the attach point number}}&lt;br /&gt;
|also_articles&lt;br /&gt;
|also_events&lt;br /&gt;
|constants={{LSL_Constants_Attachment}}&lt;br /&gt;
|notes&lt;br /&gt;
|cat1=Attachment&lt;br /&gt;
|cat2=Avatar&lt;br /&gt;
|cat3&lt;br /&gt;
|cat4&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Crystals Galicia</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Talk:LlSensor&amp;diff=92321</id>
		<title>Talk:LlSensor</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Talk:LlSensor&amp;diff=92321"/>
		<updated>2008-09-22T16:45:40Z</updated>

		<summary type="html">&lt;p&gt;Crystals Galicia: New section: All Object Sensor?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If PI/4 is a 45 degree cone: if the cone&#039;s axis is 1, does the base have a diameter of 2, or a diameter of ~0.82? --[[User:Asha Vultee|Asha Vultee]] 12:53, 19 November 2007 (PST)&lt;br /&gt;
&lt;br /&gt;
:Strictly speaking, it&#039;s not a cone. If you want an idea of what the shape will look like run the following script. -- [[User:Strife Onizuka|Strife Onizuka]] 13:20, 19 November 2007 (PST)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
float arc;&lt;br /&gt;
&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, &amp;lt;0.,1.,0.&amp;gt;, 0.0, &amp;lt;0.,0.,0.&amp;gt;, &amp;lt;0.,arc/PI,0.&amp;gt;]);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Agent? ==&lt;br /&gt;
&lt;br /&gt;
Hey everyone, don&#039;t you think the &amp;quot;AGENT&amp;quot; flag should have a description along the lines of &amp;quot;This is used to find avatars only&amp;quot;. rather than a blank description? I tried to add it myself, but I&#039;m afraid I&#039;m too newbie to understand the formatting... I couldn&#039;t find that particular table.&lt;br /&gt;
&lt;br /&gt;
:Will do, the table is in a template ([[Template:LSL_Constants_Sensor]]) so that it can be included on llSensorRepeat too. -- [[User:Strife Onizuka|Strife Onizuka]] 15:02, 23 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== All Object Sensor? ==&lt;br /&gt;
&lt;br /&gt;
Hey, can anyone tell me how to make an llSensor() that will scan for ANY object? For example, both physical and nonphysical, scripted and nonscripted, any combination. I tried combining all the flags (besides AGENT) with bitwise |, but it didn&#039;t seem to pick up all objects in range.&lt;/div&gt;</summary>
		<author><name>Crystals Galicia</name></author>
	</entry>
</feed>