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

COMP (Gets the number of components) #1236

Open
Steinny opened this issue Apr 16, 2024 · 5 comments
Open

COMP (Gets the number of components) #1236

Steinny opened this issue Apr 16, 2024 · 5 comments

Comments

@Steinny
Copy link

Steinny commented Apr 16, 2024

.xshow comp = return like comp.0 SERIAL of object
but should return COUNT!

@AtillaG1
Copy link

I believe itsbecause COMP is the whole multi, so to reduce lag its only 1 item.
However if you use .xshow component, then you can see all the dynamic components.
If you use .xshow basecomponent, you can see all the static ones. ☺

https://wiki.spherecommunity.net/index.php?title=Special_Items
https://wiki.spherecommunity.net/index.php?title=ITEMDEF#Multi_Definitions

@Steinny
Copy link
Author

Steinny commented Apr 16, 2024

.xshow comp return [UID0]
.xshow comp.0 return [UID0]
.xshow comp.1 return [UID1]
.xshow comp.2 return [INVALID SET]

COMPONENT work good - its return string, but i need SERIAL!

@xwerswoodx
Copy link
Contributor

xwerswoodx commented Apr 16, 2024

It changed to COMPS and all variables return as REFERENCE as you can use .XSHOW COMP.0.NAME

@Steinny
Copy link
Author

Steinny commented Apr 21, 2024

Sorry, thanks for the help

@Steinny Steinny closed this as completed Apr 21, 2024
@Steinny
Copy link
Author

Steinny commented Apr 25, 2024

https://wiki.spherecommunity.net/index.php?title=Special_Items

Can you make changes into wiki or addons for X branches

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

No branches or pull requests

4 participants