ACE3/addons/common/functions/fnc_monitor.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

25 lines
448 B
Plaintext

/*
* Author: commy2
* hint retun value of given function every frame
*
* Arguments:
* <CODE>
*
* Return Value:
* None
*
* Example:
* [{code}] call ace_common_fnc_monitor
*
* Public: Yes
*/
#include "script_component.hpp"
if (!isNil QGVAR(MonitorFnc)) then {
[GVAR(MonitorFnc)] call CBA_fnc_removePerFrameHandler;
};
GVAR(MonitorFnc) = [{
hintSilent str (call (_this select 0));
}, 0, _this] call CBA_fnc_addPerFrameHandler;