Looking for script, reset.js


#1

I am looking for a script, that reset an entity to rotation and location where it was grabbing from (after it was unhand from the person who was taken it), or - what I would more prefer - after a short time when it was taken from the place, a new copy of it should re-spawn. I wonder if something like that is already scripted from somebody?

Thank you in advanced :slight_smile:


#2

I wonder if it would possible to get this script:

reset.js

this little guy is running it, and I would really appreciate to run it on my domain.

If I am right, this is what I am looking for to ‘reset’ a grabbed entity to its right place and orientation when the entity is holding its data in ‘User data’ field:
for example:

{"grabbableKey":{"grabbable":true},"hifiHomeTransformerKey":{"basePosition":{"x":1108.9468994140625,"y":460.57501220703125,"z":-75.38359832763672},"baseRotation":{"x":0,"y":-0.4683924913406372,"z":0,"w":0.8835204839706421}},"hifiHomeKey":{"reset":true}}