Xiija Posted February 17, 2023 Share Posted February 17, 2023 (edited) I'm sending this .... llRegionSay(-10, "18|-1|<1.0, 0.0, 0.0>|1.0" ); and using this in the other prim, but it keeps changing the color to black, not red? default { state_entry() { llListen(-10, "","", ""); } touch_end( integer num) // this is the same as the incomming data { llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_COLOR, ALL_SIDES, <1.0, 0.0, 0.0>, 1.0 ]); } listen(integer channel, string name, key id, string message) { list options = llParseString2List(message,["|"],[""]); string tmp = llDumpList2String( options, "\n"); llOwnerSay("Incomming List:\n" + tmp); integer flag = llList2Integer( options, 0); integer face = llList2Integer( options, 1); vector colorVec = llList2Vector( options, 2); float alpha = llList2Float( options, 3); integer type = llGetListEntryType( [colorVec], 0); llOwnerSay( "Type: " + (string)type);// type 5 = vector llSetLinkPrimitiveParamsFast(LINK_THIS, [ flag, face, colorVec, alpha ]); } } Edited February 17, 2023 by Xiija Link to comment Share on other sites More sharing options...
Jenna Huntsman Posted February 17, 2023 Share Posted February 17, 2023 As per https://wiki.secondlife.com/wiki/LlList2Vector Quote When used to typecast from a string it will result in a ZERO_VECTOR A true typecast will solve this: (vector)llList2String(src, index); Chances are that llList2Vector call is actually returning <0,0,0> instead of <1,0,0> 1 2 Link to comment Share on other sites More sharing options...
Xiija Posted February 17, 2023 Author Share Posted February 17, 2023 @Jenna Huntsman that was it, tysm Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now