PDA

View Full Version : How do you run a chat command through console?



Kache
03-20-2012, 02:05 AM
I'm particularly looking for a way to get "/friendlychat" run automatically on startup.

Through searching, I think I found a way to run a console command on startup via startup.cfg, but I wasn't able to find out how to execute a chat command via console.

St0l3n_ID
03-20-2012, 07:50 AM
If youre actually mod the files, the ui cmd is:
TeamChat(stringWithYourChatMessage);
If u really want to use console use :
TeamChat message

Kache
03-20-2012, 10:59 AM
Okay, thanks.

Well, I appended my startup.cfg with:

SetSave TeamChat testing

But it doesn't notify me in the chat box that it's been toggled on or off, so I don't know if it's working.

Typing in /fc one time afterwards, it notifies me that friendly chat has just been turned on, which also seems to imply that it wasn't set before.

St0l3n_ID
03-21-2012, 08:53 AM
Im afraid there's a misunderstanding how the startup works...

This file gets loaded only once the game starts (and frequently saved on different events)
However u cant exucte a chat command onshow of the game sub-interface
For that u'll have to edit the game chat package...
Maybe it might be also a possibilty for you to simply use the Macro Assist Mod to send this one line triggerd by a newly defined hotkey...