Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSL: a function to get the prim number of another prim #130

Open
Yichard opened this issue Aug 23, 2021 · 0 comments
Open

LSL: a function to get the prim number of another prim #130

Yichard opened this issue Aug 23, 2021 · 0 comments

Comments

@Yichard
Copy link

Yichard commented Aug 23, 2021

LSL: Add a script function for a script to get the prim number of another prim than the one it is in, from the name.

I don't know why this was not implemented by Linden Labs. Perhaps because it would bring an ambiguity when several prims have the same name (like "primitive"...) This is manageable by a builder, with avoiding identical names. However, even so, the script engine would still have to go through all the prims in real time, to check for doubles. We can still assume that this is faster than the routine solution.
A solution may be to have a task started at each modification of the build (there already exist changed events for that), and warning that a double occurred. If so, the script can safely assume that there is only one prim with this name, without having to check all each time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant