ACE3/addons/common/functions/fnc_showUser.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

25 lines
504 B
Plaintext

#include "..\script_component.hpp"
/*
* 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
*/
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;