Another group AI question: SendTextMsg()

Another group AI question: SendTextMsg()

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Another group AI question: SendTextMsg()

Post by colorblind »

Is it possible to send messages to the console with a group AI, which would only be visible for the team that used the group AI?

If I use

Code: Select all

callback->GetAICallback()->SendTextMsg(..,..)
the messages are readable for everyone of the teams. I have a hunch that GetAICallback can take an optional "team" argument, but I'm not sure how the get the current team or if GetAICallback takes arguments at all.

Any help is greatly appreciated.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

It cannot, it takes the message in the form const char* and a priority which determines wteher it's displayed in console or nto absed on the min priority the user set in settings...
Post Reply

Return to “AI”