Page 1 of 1

Require Multiple Proximity Selectors Before Starting a Conversation

Posted: Tue Jan 28, 2025 12:49 am
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!

Re: Require Multiple Proximity Selectors Before Starting a Conversation

Posted: Tue Jan 28, 2025 11:52 am
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.