ACE3/addons/common/functions/fnc_sendHintTo.sqf
2015-01-17 00:21:47 +01:00

24 lines
574 B
Plaintext

/**
* fn_sendHintTo.sqf
* @Descr: Sends a hint to player unit across network
* @Author: Glowbal
*
* @Arguments: [reciever OBJECT, message STRING]
* @Return: void
* @PublicAPI: true
*/
#include "script_component.hpp"
private ["_reciever","_message"];
_reciever = _this select 0;
_message = _this select 1;
//[_reciever,_message] call cms_fnc_sendChatMessageTo;
if (isPlayer _reciever) then {
if (!local _reciever) then {
[_this, QUOTE(FUNC(sendHintTo)), _reciever, false] spawn EFUNC(common,execRemoteFnc);
} else {
hintsilent format ["%1",_message];
};
};