ACE3/addons/common/functions/fnc_showUser.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
501 B
Plaintext

/*
* Author: commy2
* hint the Variable ACE_isUsedBy from the input Object every frame
*
* Arguments:
* <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bob] call ace_common_fnc_showUser
*
* Public: No
*/
#include "script_component.hpp"
if (!isNil QGVAR(showUserPFH)) then {
[GVAR(showUserPFH)] call CBA_fnc_removePerFrameHandler;
};
GVAR(showUserPFH) = [{
hintSilent str ((_this select 0) getVariable ["ACE_isUsedBy", objNull]);
}, 0, _this] call CBA_fnc_addPerFrameHandler;