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

Find components by name #497

Open
striderxfossility opened this issue Feb 16, 2021 · 3 comments
Open

Find components by name #497

striderxfossility opened this issue Feb 16, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@striderxfossility
Copy link

striderxfossility commented Feb 16, 2021

Idea:
Is there a way to tell in scripting all the components the objects have?

for example, in save editor I can drop the player_female.entity and see all the components, the components can be called with the following script:

player:FindComponentByName(CName.new("TPPRepresentation")) -- Car/Body component
player:FindComponentByName(CName.new("root")) -- Animation Component

-- BUT ALSO (THIS IS FOR FEMALE PLAYER ONLY)
player:FindComponentByName(CName.new("body")) -- Mesh Component

But it would be nice if there is a function to see all the components on a certain class, not only player.

And by the why, root component have all sorts of UKNOWN TYPES.

@striderxfossility

This comment has been minimized.

@maximegmd maximegmd added the bug Something isn't working label Feb 16, 2021
@WSSDude
Copy link
Collaborator

WSSDude commented Feb 17, 2021

I'll split this into two issues if you dont mind cause having enhancement and bug in one is not ideal :P

@WSSDude WSSDude changed the title Components Find components by name Feb 17, 2021
@WSSDude WSSDude added enhancement New feature or request and removed bug Something isn't working labels Feb 17, 2021
@striderxfossility
Copy link
Author

yes good idea, i hide the comment.

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

No branches or pull requests

3 participants