You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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...
The text was updated successfully, but these errors were encountered: