From Second Life Wiki
Jump to navigation Jump to search

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)
I believe this is intended as a feature, as this function was added to allow land-owners to find objects using up their land's prim allowance. Attachments naturally don't use any of this limit, I'd be interested to know what a sat upon vehicle returns though, as I believe they don't count against prim allowance either?
-- Haravikk (talk|contribs) 10:36, 25 October 2010 (UTC)
I think it returns the prim count in that case but I don't remember explicitly testing the situation so I could be wrong. -- Strife (talk|contribs) 14:36, 25 October 2010 (UTC)