|
Diego Pannotia
Laronzo Fitzgerald
Join date: 14 Nov 2006
Posts: 37
|
03-07-2007 06:36
Hiya I'm using list original = llGetPrimitiveParams([PRIM_POINT_LIGHT,0]);
to get an array. I want to pull out the intensity and color and assign them to variables: intenger c_i = vector c_c =
where c_i is intensity and c_c is color not sure how to do this, I know i'd need to use llList2String or llList2Vector but stuck for exact syntax : ( Many thanks in advance, Mark.
|
|
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
|
03-07-2007 07:01
list original = llGetPrimitiveParams ([PRIM_POINT_LIGHT]);
vector c_c = llList2Vector (original, 1); float c_i = llList2Float (original, 2);
should do it. Not in world right now so I can't check.
|
|
Diego Pannotia
Laronzo Fitzgerald
Join date: 14 Nov 2006
Posts: 37
|
03-07-2007 07:22
perfect thanks =D
|