mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30 lines
522 B
Plaintext
30 lines
522 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Get Chat messages Id
|
|
*
|
|
* Arguments:
|
|
* 0: Device Id One <STRING>
|
|
* 1: Device Id two <STRING>
|
|
*
|
|
* Return Value:
|
|
* Id representing the chatMessages list <STRING>
|
|
*
|
|
* Example:
|
|
* ["myDeviceId", "myOtherDeviceId"] call ace_bft_fnc_chatMessages_getId
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_deviceId", "_otherDeviceId"];
|
|
|
|
private _id = QGVAR(chatMessages);
|
|
private _deviceIds = [_deviceId, _otherDeviceId] sort true;
|
|
|
|
{
|
|
_id = _id + _x;
|
|
} forEach _deviceIds;
|
|
|
|
_id;
|