mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
23 lines
501 B
Plaintext
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];
|
|
};
|
|
};
|