Use sideChat in script

Maddin

Well-Known Member
Hi,

i'm trying to use the sideChat in script, so i done this:

Code:
player sideChat "Test Message";

But that didn't work at all. Side Chat is enabled and people can use it. It works fine, when i try to use it via globalChat i.e.

Code:
player globalChat "Test Message";

but i need the sideChat for that one :/

I also had a look into the modules.pbo and that uses the same call, as i do basically:

Code:
scriptName "MP\data\scriptCommands\sideChat.sqf";
_caller = _this select 0;
_target = _this select 1;
_text = _this select 2;

_caller sideChat _text;
 
// Bump | Edit:

According to this Link it should work like this:


Code:
_player = [WEST, player];
_player SideChat "Test Breakpoint 36";

But that didn't help. Did i understand or code it wrong?


Apparently WEST equals BLUFOR, which is the Team i'm using. At least, if i read this.
 
i think what you are looking for is something similar to this:

Code:
[nil, nil, rHINT, _message] call RE;
or
Code:
_message = "Your Text here";
[nil, nil, rSPAWN, [player, _message], { (_this select 0) sideChat (_this select 1) }] call RE;
 
Last edited:
Back
Top