Proximity Selector vs TPC Interact Ability

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
pegassy
Posts: 135
Joined: Sat Mar 17, 2018 8:07 pm

Proximity Selector vs TPC Interact Ability

Post by pegassy »

Hello,

I am working on a 2.5D side-scrolling game project, so the player does not really raycast towards another NPC to interact with them. So far I have been using the Proximity Selector Script (I do not recall if I took it from another demo or from prefabs) on the player and the "Usable" script on the NPC, which causes "Press F to Interact" to show when I get inside the NPC trigger radius.

I noticed in the mount your steed demo quest scene that you provided that you are not using either of those, and instead using TPC's intearct ability.

Is there any way to use the TPC interact ability instead of the Proximity Selector without having to look at the character, for example in a 2.5D scene?
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Proximity Selector vs TPC Interact Ability

Post by Tony Li »

Hi,

Yes. On the NPC's Interactable component, change Interactor Look Interact Max Angle to 360.
pegassy
Posts: 135
Joined: Sat Mar 17, 2018 8:07 pm

Re: Proximity Selector vs TPC Interact Ability

Post by pegassy »

Do I need to make any changes on the player's interact ability?
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Proximity Selector vs TPC Interact Ability

Post by Tony Li »

No, just the Max Angle on the NPC. And a little correction: It only needs to be 180, not 360. That makes it 180 degrees each direction, or 360 degrees total.
Post Reply