Update scripting.asciidoc

Updating scripting distance function documentation to match current implementation.