Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:scripting_portal:lsl_functions:llsetprimitiveparams [2019/05/24 03:44]
Royale Mobian [llSetPrimitiveParams]
wiki:scripting_portal:lsl_functions:llsetprimitiveparams [2019/05/24 03:52] (current)
Royale Mobian [llSetPrimitiveParams]
Line 27: Line 27:
 Although it might not seem obvious you actually can set link rules using this function in combination with PRIM_LINK_TARGET,​ however for your own sake please use llSetLinkPrimitiveParams or llSetLinkPrimitiveParamsFast instead. Although it might not seem obvious you actually can set link rules using this function in combination with PRIM_LINK_TARGET,​ however for your own sake please use llSetLinkPrimitiveParams or llSetLinkPrimitiveParamsFast instead.
  
-**Function: ​llSetLinkPrimitiveParams( integer link, list rules );**+**llSetLinkPrimitiveParams( integer link, list rules );**
 Sets the prims parameters according to rules. Sets the prims parameters according to rules.
   * integer [[wiki:​scripting_portal:​integer/​link|link]] – Link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) or a LINK_* flag   * integer [[wiki:​scripting_portal:​integer/​link|link]] – Link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) or a LINK_* flag
-  * list [[wiki:​scripting_portal:​lsl_lists/​instructions|rules]] +  * list [[wiki:​scripting_portal:​lsl_lists/​instructions|rules]] 
 +  
 +Please consider using [[wiki:​scripting_portal:​lsl_functions:​llsetlinkprimitiveparamsfast|llSetLinkPrimitiveParamsFast]] instead. You avoid the 0.2 second delay. ​  
 + 
 +**llSetLinkPrimitiveParamsFast( integer link, list rules );** 
 +Sets the prims parameters according to rules. 
 +  * integer [[wiki:​scripting_portal:​integer/​link|link]] – Link number (0: unlinked, 1: root prim, >1: child prims and seated avatars) or a LINK_* flag 
 +This function is fast compared to the above variations, not other LSL functions. 
 +==== Caveats ==== 
 +  * Sometimes [[wiki:​scripting_portal:​lsl_functions:​llsetlinkprimitiveparamsfast|llSetLinkPrimitiveParamsFast]] is //too fast//, i.e. the function returns and the next line of code executes & returns before the update has been processed, resulting in the updates being out of order. In most situations, there is no difference in behavior but sometimes there is. In those cases, you need to use [[wiki:​scripting_portal:​lsl_functions:​llsetprimitiveparams|llSetPrimitiveParams]] or [[wiki:​scripting_portal:​lsl_functions:​llsetlinkprimitiveparams|llSetLinkPrimitiveParams]]. 
 +        * This occurs because the [[wiki:​scripting_portal:​lsl_functions:​llsetlinkprimitiveparamsfast|llSetLinkPrimitiveParamsFast]] payload is being executed asynchronously,​ while [[wiki:​scripting_portal:​lsl_functions:​llsetprimitiveparams|llSetPrimitiveParams]] and [[wiki:​scripting_portal:​lsl_functions:​llsetlinkprimitiveparams|llSetLinkPrimitiveParams]] payloads are executed synchronously (or the delay makes it appear synchronous). ​
 ==== Example use cases: ==== ==== Example use cases: ====
  
QR Code
QR Code wiki:scripting_portal:lsl_functions:llsetprimitiveparams (generated for current page)