Add a new function for parcel land impact usage, with configurable options
hacker Resident
llGetParcelPrimOwners()
currently only returns upt o 100 results, with them being sorted alphabetically by agent uuid. this makes it impossible for scripts to reliably obtain a complete list of object owners when a parcel has more than 100 agents with rezzed objects, which can be common in places like sandboxes or shared rental parcels Being able to specify options like the result count, sorting order, etc would make the function much more useful. script memory usage from large lists is also less of an issue given the fact that lua/the lsl-lua compiler will provide 128kb instead of lsl's 64kb, and the result count option would allow scripts to control memory usage
This would be a new function instead of adding onto
llGetParcelPrimOwners
, so it doesn't break existing scripts:llGetParcelObjectUsage(vector pos, list options)
vector pos
- position in region coordslist options
- list of configurable optionsoptions:
- LIST_COUNT - amount of result pairs to return
- SORT_BY - sorting order of the return list
SORT_BY_UUID_ASC/DESC - alphabetically by uuid
SORT_BY_USAGE_ASC/DESC - by usage amount
llGetParcelObjectUsage(llGetPos(), [LIST_COUNT, 50, SORT_BY, SORT_BY_USAGE_DESC])
The list formatting, permission requirements, etc. could be similar or identical to
llGetParcelPrimOwners()
Log In