Require Multiple Proximity Selectors Before Starting a Conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
musicROCKS013
Posts: 9
Joined: Fri Jan 03, 2025 8:29 pm

Require Multiple Proximity Selectors Before Starting a Conversation

Post by musicROCKS013 »

I'm making a local multiplayer game, and I have two different characters. I want to make it so that the conversation will only become useable by them when both of their proximity selectors are inside of the useable's range.

It doesn't matter which player actually triggers the conversation, as long as it only triggers when they're both in range. Is there some LUA condition I can put into the Dialogue System Trigger conditions, or would a custom c# script be better?

Thanks!
User avatar
Tony Li
Posts: 23255
Joined: Thu Jul 18, 2013 1:27 pm

Re: Require Multiple Proximity Selectors Before Starting a Conversation

Post by Tony Li »

Hi,

Probably best to make a subclass of ProximitySelector and override the UseCurrentSelection() method to check if both ProximitySelectors' CurrentUsable properties are set to the same value. If so, call the base method.
Post Reply