ACE3/TO_MERGE/cse/main/messages/functions/fn_sendMessageTo.sqf
2015-01-12 23:35:40 +01:00

23 lines
501 B
Plaintext

/**
* fn_sendMessageTo.sqf
* @Descr: Sends a chat message to player unit across the network
* @Author: Glowbal
*
* @Arguments: [reciever OBJECT, message STRING]
* @Return: void
* @PublicAPI: true
*/
private ["_reciever","_message"];
_reciever = _this select 0;
_message = _this select 1;
if (isPlayer _reciever) then {
if (!local _reciever) then {
[_this, "cse_fnc_sendMessageTo", _reciever, false] spawn BIS_fnc_MP;
} else {
CSE_LOGIC_OBJECT globalChat format ["%1",_message];
};
};