#1 2015-07-09 20:38:55

gaya
Member

ICOMMANDs

Are ICOMMAND commands that are called from client code to the server? If so, what does this mean?

ICOMMAND(getweapon, "", (), intret(player1->gunselect));

Why is there an empty screen and an empty expression for the 2nd and 3rd args? Also, what's the difference between an ICOMMAND and addmsg()?

Last edited by gaya (2015-07-09 20:39:53)

Offline

#2 2015-07-10 08:53:02

ImNotQ009
Moderator

Re: ICOMMANDs

The ICOMMAND has nothing to do with client-server communication, it's just a macro that creates commands usable from in-game console or scripts.

Last edited by ImNotQ009 (2015-07-10 08:53:16)

Offline

#3 2015-07-10 19:06:51

gaya
Member

Re: ICOMMANDs

So, basically, it exposes the function call to cfg files?

Offline

#4 2015-07-10 20:03:55

ImNotQ009
Moderator

Re: ICOMMANDs

That and the console

Offline

Board footer