Jump to content

llGetLinkPrimitiveParams


zoieosei
 Share

You are about to reply to a thread that has been inactive for 3629 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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);

  • Like 1
Link to comment
Share on other sites


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

You are about to reply to a thread that has been inactive for 3629 days.

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
 Share

×
×
  • Create New...