mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
76e1aafb33
Co-authored-by: Björn Dahlgren <bjorn@dahlgren.io>
25 lines
467 B
Plaintext
25 lines
467 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* hint retun value of given function every frame
|
|
*
|
|
* Arguments:
|
|
* 0: Code to monitor <CODE>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [{code}] call ace_common_fnc_monitor
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
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;
|