Don't click here unless you want to be banned.

LSL Wiki : llList2Rot

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org
rotation llList2Rot(list src, integer index)

Returns the rotation at index from the list src.

Example:
llList2Rot(foo, 0); // returns the first element in the list.
llList2Rot(foo, 1); // returns the second element in the list.

Note: llList2Rot will not automatically cast a string to a rotation. Thus, if you attempt to retrieve a list element consisting of a rotation cast to a string like "<123,456,789,012>", llList2Rot will return ZERO_ROTATION or <0,0,0,1>. This can be avoided by using llList2String and casting directly, as in:
rotation foo = (rotation)llList2String(bar,0);

Compare with llList2Float, llList2Integer, llList2Key, llList2List, llList2ListStrided, llList2String and llList2Vector.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Lists | Functions
There is no comment on this page. [Display comments/form]