EDIT:
found it - the problem that is....
I had the following code line sequence (out of order !)
This is what had for the last two days...
SetSoundVolume(vol_dip)
PlaySoundIfSilent(sound_entity, 1)
This is what should of had...
PlaySoundIfSilent(sound_entity, 1)
SetSoundVolume(vol_dip)
That solved part of my problem (real rocket stuff, huh) !
I have made this mistake before, dumb, dumb, dumb.
Trust me there is a very large sign on my office wall now, a hard to ignore size in red.
The following was the other big problem
--When the player enters or exits the zone influnced by the waterfall_test.lua routine
--I lose the background sound wav (sound marker with the musicinzone lua file) overlaying the start marker which
--will play up until the player enters the area of the waterfall entity.
--The sound wav file that is part of the start marker is dimminished or turned
--off during the transition thru the zone.
--The background sound will not return at any noticeable volume if at all
--The wav files in the two routines are not the same file, but they both were using slot 0. Bad, Bad, Bad
The trigger zone has only 1 slot which is slot 0 for any background wav file.
The properties for entities have several slots for the placement of wave files 0 thru 5 so if you want to have a constant background wav file attached
to the player marker it must be in slot 0.
Then any entity that has a lua file assigned to it (that revises volumes must have the support wav file installed in slot 1 (any slot other than 0) the assigned lua files sound commands must refer to slot 1 for sound action if you are making any changes to the volume.
Any instance where there is a wav file attached to slot 0 in a sound trigger zone laid over the player marker as a background sound , any lua script that deals with sound volume manipulations, needs to have its support wav files placed in a slot other than 0
Attached is the working lua file
if a video of the operation of this script would illustrate how the fade works just let me know...
EDIT: update script
Windows 10 creator,64 bit| Intel i7-7700 @3.60GHZ Quad|CPU PASSMARK10,817|Memory 16GB |NVIDIA GEFORCE GTX 1070|GPU PASSMARK 11,026