Npc as a radio contact in a third person game

Original Discord Post by allegregamer | 2024-08-25 22:08:42

hello everyone, im new here. I watched few youtube video to learn how to set up my character into a Unity project. Is there a way to interact with the NPC in third person view. As if we are calling them via radio? I am making a top down shooter

Reply by k3kalinix | 2024-08-26 09:12:41

Hello <@505230291187662869>,
Yes, you can.

Just create your own Third Person Player.

Then move the components of the Convai Player object.

Reply by allegregamer | 2024-08-26 09:20:48

I have my third person player in the scene, then I have the Convai NPC which I dont need him to be visible as he will be only talking with the player via radio, then I have the Convai Essentials game object which includes the convai player character the camera and the input manager. for now I just set the character to be very close to the NPC so that it triggers the talk option with T. and I have the camera set on display 2 so it is not visible in game and I can use my main camera for the third person view. which is a top view that follow the player. this set up works for testing, but im sure is not the ideal one. Is there a tutorial available that I could follow, as I did not really understand from your reply

Reply by allegregamer | 2024-08-26 09:22:12

basically I need the Talking by holding T to be always availabe no matter where my player goes. as it works as a radio chat.

Reply by k3kalinix | 2024-08-26 09:35:16

No, there is no tutorial.

In your case you have to manually change ActiveNPC in NPCManager.

Remove the relevant codes in NPCManager that search for the active NPC.

Assign the NPC in your scene to the active npc.

Reply by allegregamer | 2024-08-26 13:00:19

Assign the NPC in your scene to the active npc.

how to do this exactly?

Reply by k3kalinix | 2024-08-26 13:12:39

Please show me the NPCManager.cs

Reply by allegregamer | 2024-08-30 01:58:24

I will soon. Im busy at work now. It would be cool if we can do a live stream session where I share my screen to show you my set up and you could guide me through.

What country are you from?

Reply by k3kalinix | 2024-09-02 20:52:46

Okay, my time zone is GMT+3

Reply by k3kalinix | 2024-09-02 20:53:10

Please let me know when you are available.

Reply by k3kalinix | 2024-09-09 09:36:10

<@505230291187662869>

Reply by allegregamer | 2024-09-09 10:57:33

Ok. I will let you know when I am available. Thanks