zoieosei Posted May 12, 2014 Share Posted May 12, 2014 I'm trying to get a linked primitize size.In the root prim I have this script.I have no idea where I am going wrong.Someone knows why it isn't working? default { touch_start(integer total_number) { vector linksize; linksize=llGetLinkPrimitiveParams( 2, PRIM_SIZE ); } } Link to comment Share on other sites More sharing options...
Qie Niangao Posted May 12, 2014 Share Posted May 12, 2014 llGetLinkPrimitiveParams deals in lists of parameters. That makes it handy when you want to get a bunch of different information about a linked prim with a single function call. In the event that you only want the one parameter, you still need to supply it in a list, and extract the value from the list returned by the function. So you may want something like linksize = llList2Vector(llGetLinkPrimitiveParams(2, [PRIM_SIZE]), 0); 1 Link to comment Share on other sites More sharing options...
zoieosei Posted May 12, 2014 Author Share Posted May 12, 2014 Thank you so much. You helped me totally solve this! At first I did use llList2Vector but my problem got worse. Now I see why. I used PRIM_SIZE instead of [PRIM_SIZE] Link to comment Share on other sites More sharing options...
Dora Gustafson Posted May 12, 2014 Share Posted May 12, 2014 zoieosei wrote: I'm trying to get a linked primitize size. In the root prim I have this script. I have no idea where I am going wrong. Someone knows why it isn't working? default{ touch_start(integer total_number) { vector linksize; linksize=llGetLinkPrimitiveParams( 2, PRIM_SIZE ); }} The argument PRIM_SIZE must be given as a list, like this: [PRIM_SIZE] The function returns a list not a vector, so you must extract the vector using llList2Vector() :smileysurprised::smileyvery-happy: 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