---
name: "BIS_fnc_moduleChat"
type: function
status: ok
groups: ["Modules"]
arma3_since: "1.00"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_moduleChat
revid: 328357
updated: 2022-07-13T16:00:47Z
---

# BIS_fnc_moduleChat

*Function · Modules · Arma 3 v1.00*

Locality: effect **local**

## Description

Make a list of units use any *chat command ([groupChat](../commands/groupChat.md), [vehicleChat](../commands/vehicleChat.md), [sideChat](../commands/sideChat.md), [commandChat](../commands/commandChat.md), [globalChat](../commands/globalChat.md)).

## Syntax

```sqf
[logic, units, isActivated] call BIS_fnc_moduleChat
```

**Parameters:**

- `logic`: [Object](../topics/Object.md) the logic. Possible [setVariable](../commands/setVariable.md) parameters:
  - "Text": [String](../topics/String.md) - the text to be sent
  - "Channel": [String](../topics/String.md) - (Optional, default "0") a number **as a string**:
    - "0": [groupChat](../commands/groupChat.md)
    - "1": [vehicleChat](../commands/vehicleChat.md)
    - "2": [sideChat](../commands/sideChat.md)
    - "3": [commandChat](../commands/commandChat.md)
    - "4": [globalChat](../commands/globalChat.md)
- `units`: [Array](../topics/Array.md) of [Object](../topics/Object.md)s - list of chatting units
- `isActivated`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) if [true](../commands/true.md), the module is activated and chat is send. [false](../commands/false.md) disables the module

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when done, even if *isActivated* equals [false](../commands/false.md)

## Examples

### Example 1

```sqf
myLogic setVariable ["Channel", "2"];
myLogic setVariable ["Text", "Hello everyone, this is side chat!"];
[myLogic, [player], true] call BIS_fnc_moduleChat;
```

## See also

[groupChat](../commands/groupChat.md) · [vehicleChat](../commands/vehicleChat.md) · [sideChat](../commands/sideChat.md) · [commandChat](../commands/commandChat.md) · [globalChat](../commands/globalChat.md) · [systemChat](../commands/systemChat.md)

<sub>Source: [BI Community Wiki — BIS fnc moduleChat](https://community.bistudio.com/wiki/BIS_fnc_moduleChat) (revision 328357).</sub>
