The mouseReleaseOnEntity signal is not emitted when the mouse is not over the entity which had been clicked. The documentation states it should be emitted:
Triggered when a mouse button is released after clicking on an entity or the controller trigger is partly or fully released after pressing on an entity, even if the mouse pointer or controller laser has moved off the entity.
Seems it is also triggered after the mouse is pressed away from the entity, and then released on the entity.
mousePressAndRelease.js
I have attached a simple client entity script which can be added as a script to any entity to test this behaviour.
Click (and hold) the entity to color it green, release on the entity to color it red. It should be colored red when releasing off the entity, as described in the documentation, but it is not.
The mouseReleaseOnEntity signal is not emitted when the mouse is not over the entity which had been clicked. The documentation states it should be emitted:
Seems it is also triggered after the mouse is pressed away from the entity, and then released on the entity.
mousePressAndRelease.js
I have attached a simple client entity script which can be added as a script to any entity to test this behaviour.
Click (and hold) the entity to color it green, release on the entity to color it red. It should be colored red when releasing off the entity, as described in the documentation, but it is not.