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

LSL Wiki : llList2Vector

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

Copy and return the vector at index in the list src.

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

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

Note: llList2Vector will not automatically cast a string to a vector. Thus, if you attempt to retrieve a list element consisting of a vector cast to a string like "<1,2,4>", llList2Vector will return ZERO_VECTOR or <0,0,0>. This can be avoided by using llList2String and casting directly, as in:
vector foo = (vector)llList2String(["<1,2,4>"], 0);


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

Functions | Lists
There are 4 comments on this page. [Display comments/form]