|
Okiphia Anatine
Okiphia Rayna
Join date: 22 Nov 2007
Posts: 454
|
01-01-2008 11:10
Is this no longer able to return the number of prims used simwide? Or was it ever? The Wiki says it should, but I'm not seeming able to use it as such. All the line below is doing is returning the number of prims used in the local parcel. llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, TRUE);
Any way around this? Nothings on the wiki about this not working =/ Edit:: Also seems the same is true for llGetParcelMaxPrims() It's returning only the max for the local parcel (Even weirder it's actually a couple prims lower than if I left sim-wide as FALSE) the line I'm using is: llGetParcelMaxPrims(llGetPos(), TRUE);
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-01-2008 23:51
to my knowledge the only time it'll return simwide results is if the owner of the object can view those results from all the parcels.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
01-01-2008 23:52
When you take a close look at the command names you will see that they all have the word PARCEL in them. So of course they will only work on the current parcel. And that only when you have sufficient permissions.
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
01-02-2008 00:20
With the sim-wide flag set, you get the total count for all parcels on that sim owned by that one parcel owner. So it's like the true max number of prims you can put on that parcel.
Without the sim-wide flag set, you get the count for only that parcel.
The parcel could have more prims on it than the parcel itself supports because the total is shared by parcels in the same sim with the same owner.
|
|
FireEyes Fauna
Registered User
Join date: 26 Apr 2004
Posts: 138
|
01-02-2008 00:26
It works for all the parcels that are owned by the Shelter in Isabel. default { state_entry() { llOwnerSay("Total Count in Sim: " + (string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, TRUE)); llOwnerSay("Total Count on Parcel: " + (string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE)); } }
returns [0:24] Object: Total Count in Sim: 3823 [0:24] Object: Total Count on Parcel: 2350 There are 3 parcels in Isabel deeded to Shelter Infrastructure. The parcel the object was on was our main. The sim wide included the prims from our pool area and live music area.
|