Jump to content
Sign in to follow this  
Kydoimos

KBTell and MP

Recommended Posts

Hi all,

 

I don't suppose anyone might be able to give me a few pointers for using the KBtell system in MP? Let's say I want one player's unit to speak to a group of other players - how should the following KBTell script look? 

Player_Unit kbAddTopic ["conv", "Sentences.bikb", "", ""];
Player_Unit kbTell [?????, "conv", "Conversation_01"];

And for a general conversation, broadcast from a gamelogic to several groups?

Game_Logic kbAddTopic ["conv", "Sentences.bikb", "", ""];
Game_Logic kbTell [?????, "conv", "Conversation_01"];

Thanks in advance, chaps! Trying to adjust to all those local / global issues that MP throws into the works :P

Share this post


Link to post
Share on other sites

I think I had the same troubles with kbTell. Did you try to run it locally on every client?

Share this post


Link to post
Share on other sites

Hiya!

 

I am kbTell ignorant, and COMREF says nothing about locality of those commands. But assuming they are local (to check it you can try to build a dedi from the launcher, run the mission and see what happens).

 

Assuming you are doing your first steps on this kind of issues:

 

All the setups have to be done on all the machines, like kbAddTopic etc.. Assuming you are not adding topics dynamically, that will be enough.

 

If you are using kb eventhandlers, then the tell execution have to be done with remoteExec command.

 

Using you example and assuming you want everybody to hear the conversation:

 

Player_Unit kbTell [?????, "conv", "Conversation_01"];

 

[Player_unit,[?????, "conv", "Conversation_01"]] remoteExec ["kbTell"];

 

Or you want only certain player hear the conversation:

 

[Player_unit,[?????, "conv", "Conversation_01"]] remoteExec ["kbTell",Player_unit];

 

If you are NOT using those EH, then you will use a function with waitUntil {_unit kbWasSaid..} like the one I see in BIS forums.

 

Then you have to call it in a similar way:

 

[Player_unit,otherGuySpeaking] remoteExec ["conversationOne"]

 

 

Share this post


Link to post
Share on other sites

 

I think I had the same troubles with kbTell. Did you try to run it locally on every client?

 

Hiya mate! :D Haven't run any tests yet, but will try!

 

@Barbaloni - thanks matey, that's a bit to go on - I wonder if lip movement is in sync too? I'll read up a bit on this remoteExec business too! 

Share this post


Link to post
Share on other sites

AFAIK the lip is automated in MP for players. You get very close to any player and has continuous and very ugly lip movement. For AI I think not, but I suppose being the lip file in every PC, and executing locally the audio files, will make the lip think work aswell.

 

I know you aim for perfection, but remember in MP those details are in second stage, as the inmersion is broken because you are playing with your brother in law or a taiwanese friend... My advice is to focus more on balance and fun in a MP Coop environment.

Share this post


Link to post
Share on other sites

 

I know you aim for perfection, but remember in MP those details are in second stage, as the inmersion is broken because you are playing with your brother in law or a taiwanese friend... My advice is to focus more on balance and fun in a MP Coop environment.

 

:D Thanks, Barbolani - yeah, you're right - I need to adjust my focus!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×