Jump to content

For a HUD, llGetPos() and llGetObjectDetails(Owner, [OBJECT_POS]) same?


primerib1
 Share

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

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

Recommended Posts

As the title asks.

For a script inside a HUD object, is there a difference between

        vector myPos = llGetPos();
and
        key gOwnerID = llGetOwner();
        list OwnerDetails = llGetObjectDetails(gOwnerID, AVI_DETAIL_WANT);
        vector myPos = llList2Vector(OwnerDetails, 0);

aside from possible performance difference?

Edited by primerib1
Code formatting
Link to comment
Share on other sites

Assuming the script is in the root of the attachment (HUD or not), and that AVI_DETAIL_WANT is OBJECT_POS, these should be the same, per the wiki's description of llGetPos:

Quote
  • When called from the root of an attachment, returns the wearer's region position. […]

But I'm curious what raises the question. Are you seeing a difference?

  • Thanks 1
Link to comment
Share on other sites

40 minutes ago, Qie Niangao said:

Assuming the script is in the root of the attachment (HUD or not), and that AVI_DETAIL_WANT is OBJECT_POS, these should be the same, per the wiki's description of llGetPos:

But I'm curious what raises the question. Are you seeing a difference?

Thanks for confirming my suspicion! And yeah, AVI_DETAIL_WANT is [OBJECT_POS], sorry forgot to replace that 😅

No actually I haven't seen any difference, but FS is extremely slow on my laptop, so I'd rather edit things in VS Code and not have to go back-and-forth into FS...

(Personally much prefer Kokua but I think I did a stupid and now Kokua crashes on every login *sighs*)

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 129 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...