Difference between revisions of "Talk:PRIM LINK TARGET"

From Second Life Wiki
Jump to navigation Jump to search
m (tags)
Line 2: Line 2:
Note for whoever writes this page; PRIM_LINK_TARGET only works if the script is in the root prim.  Otherwise it gives you an error.
Note for whoever writes this page; PRIM_LINK_TARGET only works if the script is in the root prim.  Otherwise it gives you an error.
ETA: Maestro Linden thinks it's a bug: https://jira.secondlife.com/browse/SCR-162
ETA: Maestro Linden thinks it's a bug: https://jira.secondlife.com/browse/SCR-162
<lsl>
<source lang="lsl">


default
default
Line 15: Line 15:


}
}
</lsl>
</source>
behaves as expected in the root, but gives the error
behaves as expected in the root, but gives the error
  llSetPrimitiveParams error running rule #2 (PRIM_LINK_TARGET): bounds error; 2 is not in (-4, 0).
  llSetPrimitiveParams error running rule #2 (PRIM_LINK_TARGET): bounds error; 2 is not in (-4, 0).
  llSetPrimitiveParams error running rule #4 (PRIM_LINK_TARGET): bounds error; 3 is not in (-4, 0).
  llSetPrimitiveParams error running rule #4 (PRIM_LINK_TARGET): bounds error; 3 is not in (-4, 0).
when called from a child prim. [[User:Innula Zenovka|Innula Zenovka]] 04:52, 16 August 2011 (PDT)
when called from a child prim. [[User:Innula Zenovka|Innula Zenovka]] 04:52, 16 August 2011 (PDT)

Revision as of 17:25, 10 August 2015

Caveat/bug

Note for whoever writes this page; PRIM_LINK_TARGET only works if the script is in the root prim. Otherwise it gives you an error. ETA: Maestro Linden thinks it's a bug: https://jira.secondlife.com/browse/SCR-162

default
{
    state_entry()
    {
       llSetLinkPrimitiveParamsFast(
       1,[PRIM_COLOR,ALL_SIDES,<1.0,0.0,0.0>,1.0,
       PRIM_LINK_TARGET,2,PRIM_COLOR,ALL_SIDES,<0.0,1.0,0.0>,1.0,
       PRIM_LINK_TARGET,3,PRIM_COLOR,ALL_SIDES,<0.0,0.0,1.0>,1.0]);
    }

}

behaves as expected in the root, but gives the error

llSetPrimitiveParams error running rule #2 (PRIM_LINK_TARGET): bounds error; 2 is not in (-4, 0).
llSetPrimitiveParams error running rule #4 (PRIM_LINK_TARGET): bounds error; 3 is not in (-4, 0).

when called from a child prim. Innula Zenovka 04:52, 16 August 2011 (PDT)