Difference between revisions of "Talk:LlGetObjectPrimCount"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:


:News to me. I'm going to guess that this function was intended to be used for working with objects in a parcel and determining their cost against prim limits. I'm not sure if this is a bug or a feature. I'll document it. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 18:02, 6 April 2010 (UTC)
:News to me. I'm going to guess that this function was intended to be used for working with objects in a parcel and determining their cost against prim limits. I'm not sure if this is a bug or a feature. I'll document it. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 18:02, 6 April 2010 (UTC)
::Thanks for updating - it was making me tear my hair out until I gave up and just wrote a little script to report the actual results. [[User:TaraLi Jie|TaraLi Jie]] 02:15, 7 April 2010 (UTC)

Revision as of 19:15, 6 April 2010

Using llGetObjectPrimCount(llGetKey()) in an object rezzed in world yields the desired result (the object's primcount); however, the same call will yield 0 if the object is attached. Is this the expected behaviour? For me, at least, this is unexpected. Maybe someone knows whether it should be like this, or not. Thanks. Ookami Hudson 01:14, 6 April 2010 (UTC)

I got caught the same way - neither this article, or llGetNumberOfPrims mentioned behavior when attached. Best seems to be testing llGetAttached, and using the appropriate call. TaraLi Jie 05:19, 6 April 2010 (UTC)

News to me. I'm going to guess that this function was intended to be used for working with objects in a parcel and determining their cost against prim limits. I'm not sure if this is a bug or a feature. I'll document it. -- Strife (talk|contribs) 18:02, 6 April 2010 (UTC)
Thanks for updating - it was making me tear my hair out until I gave up and just wrote a little script to report the actual results. TaraLi Jie 02:15, 7 April 2010 (UTC)