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

AC Scripts: Entities.editEntity just don't work. #1126

Open
AleziaKurdis opened this issue Aug 31, 2024 · 0 comments
Open

AC Scripts: Entities.editEntity just don't work. #1126

AleziaKurdis opened this issue Aug 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AleziaKurdis
Copy link
Contributor

If you make an AC script, that is creating an entities then you want it to move this entity using Entities.editEntity to change it's position, the entity is never changed.
But it works fin if instead you do a Delete an a Add at this new position.

Make sure to have the EntityViewer set correctly. (Not sure it has to to manage entities when the Ac script already know the id.)
But this is for sure required to search entities. (Entities.findEntities ... functions)

It fails for Model entity for sure, I don't know for other types of entities.

This is definitely going to be an issue to build game systems. (so far I could use the delete/add workaround, but it might not be always possible)

There are example of old ACscript that already used editEntity...
https://github.com/overte-org/overte/tree/eb168e4e5dddfb8f7f113d6530145869bb451137/unpublishedScripts/DomainContent/CellScience
(See the "move" script)
It has certainly worked in the past...

@JulianGro JulianGro added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants