Travel time ETA

Description
Returns the ETA from object to source (in seconds), will return 0 if object is not moving. I *think* there's a default arma function that does the same but I wrote this one for kicks.

Function
Function name:MRH_fnc_travelTimeEta Author: Mr H. Description: returns the ETA from object to source (in seconds) will return 0 if object is not moving Return value:  time in seconds, 0 if object is not moving Public: Yes Parameters: 0 -  - Moving object 1 -  or  if  position 3d or position 2d Example(s): _estimatedTimeOfArrival = [heli,LZ] call MRH_fnc_travelTimeEta; or _estimatedTimeOfArrival = [heli,[X,Y,Z]] call MRH_fnc_travelTimeEta; or _estimatedTimeOfArrival = [heli,[X,Y]] call MRH_fnc_travelTimeEta; or _estimatedTimeOfArrival = [heli,getMarkerPos "LZ"] call MRH_fnc_travelTimeEta; // some useful uses: waitUntil {([heli,LZ] call MRH_fnc_travelTimeEta)<=60}; hint "Arrivée dans une minute" // onEachFrame {_estimatedTimeOfArrival = [heli,LZ] call MRH_fnc_travelTimeEta; hintSilent format ["Temps estimé d'arrivée %1",str _estimatedTimeOfArrival];};