ACE3/addons/common/functions/fnc_showUser.sqf

23 lines
450 B
Plaintext
Raw Normal View History

2015-09-17 16:25:02 +00:00
/*
* Author: commy2
*
* hint the Variable ACE_isUsedBy from the input Object every frame
*
* Argument:
* <OBJECT>
*
* Return Value:
* None
*
* Public: No
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-09-17 16:25:02 +00:00
if (!isNil QGVAR(showUserPFH)) then {
[GVAR(showUserPFH)] call CBA_fnc_removePerFrameHandler;
};
2015-09-17 16:25:02 +00:00
GVAR(showUserPFH) = [{
hintSilent str ((_this select 0) getVariable ["ACE_isUsedBy", objNull]);
}, 0, _this] call CBA_fnc_addPerFrameHandler;