on Mw3 we was able to call script from chat like this !vote !nextmap !map mp_alpha ... also in game console ,, we could do login command for admins
if i do the following in _clientids.gsc file :
function helloWorld()
{
iPrintln("hello world");
}
How i could call this function from command /Chat inside the game ,,, not on connect or respwn
As CabCon suggest:" You need to add a listener at the connect which are looking for commands in thechat! And if the command is true, it need to call the helloWorld function! "
if i do the following in _clientids.gsc file :
function helloWorld()
{
iPrintln("hello world");
}
How i could call this function from command /Chat inside the game ,,, not on connect or respwn
As CabCon suggest:" You need to add a listener at the connect which are looking for commands in thechat! And if the command is true, it need to call the helloWorld function! "