Talk:PRIM LINK TARGET

From Second Life Wiki
Revision as of 04:52, 16 August 2011 by Innula Zenovka (talk | contribs) (noted bounds error message when PRIM_LINK_TARGET is used in a child prim)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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. <lsl>

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]);
   }

} </lsl> 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)