Fall Damage ☠️
You need to own this item to leave a rating.
This script will teleport the avatar to a defined position when they free fall and land from a defined height (ie die from fatal fall). Sound effects* can be added for "fall damage" and "fatal fall damage". This script does not track health, only triggers teleport when passing the fatal fall threshold.
This is useful if you have any kind of gameplay where some physics realism is needed to simulate damage/death from falling, or to prevent certain regions from being accessed without having to put up barriers.
This script needs to be inserted only once, in any scene object.
* the sound effects have a slight delay for the person falling when played, because your own avatar is a fraction of second ahead in movement than where it really is as seen by others, a known Sansar limitation.
* I allow buyers to resell this script as part of their own products, but not as a standalone script