2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-09-17 16:25:02 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* hint retun value of given function every frame
|
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Arguments:
|
2023-04-30 21:03:35 +00:00
|
|
|
* 0: Code to monitor <CODE>
|
2015-09-17 16:25:02 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [{code}] call ace_common_fnc_monitor
|
|
|
|
*
|
2015-09-17 16:25:02 +00:00
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-17 16:25:02 +00:00
|
|
|
if (!isNil QGVAR(MonitorFnc)) then {
|
|
|
|
[GVAR(MonitorFnc)] call CBA_fnc_removePerFrameHandler;
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
2015-09-17 16:25:02 +00:00
|
|
|
|
|
|
|
GVAR(MonitorFnc) = [{
|
|
|
|
hintSilent str (call (_this select 0));
|
|
|
|
}, 0, _this] call CBA_fnc_addPerFrameHandler;
|