apex_predator 0 Posted April 8, 2005 I am making a quasi-pace counter for a landnav course, instead of counting paces it displays the ditance the trainee has traveled from the last point. It does this via the hint box that constantly updates the player position relative to the marker position, calculates the distance, and output to hint. The problem is that on every loop there is a distinct 'dinging' sound that gives the effect of a constant 'buzz' through the speakers that is very annoying. What is it and how do I stop it? here's the code: _target = _this select 0 player = _this select 1 _marker = _this select 2 _trigger = _this select 3 ~0.001 #start getpos _target getpos player _travel = (player distance _target) ?(_travel>_trigger) : goto "start" #calc getpos _target getpos player _travel = (player distance _target) _travel=_travel-(_travel%1) hint format["Meters From Last Point: %1",_travel] goto "calc" Share this post Link to post Share on other sites
Blanco 0 Posted April 8, 2005 You can't disable it, and you are right it's very anoying. But why don't you use : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> player globalchat format["Meters From Last Point: %1",_travel] Much quieter and there is the Mileage calculator by Pablom123 Share this post Link to post Share on other sites
dmakatra 1 Posted April 8, 2005 If you'd use a shorter delay I guess you could fadeSound to 0 and then back up to 1 or whatever. Sligthly more complicated would be to create a resource and feed it new text all the time. Share this post Link to post Share on other sites
apex_predator 0 Posted April 8, 2005 Thanks for the help guys, Given your information I was able to formulate a work around. Now I only update the position every 100 meters (which is closer to how a real pace counter works anyway) and it eliminates the ding. Share this post Link to post Share on other sites