Hey guys,
SO, what I am trying to achieve is having 2( or more ) characters enter a trigger box and the doors opens. Simple. When one character leaves the Trigger, the door should remain open and when all characters leave the trigger box, then all the doors can close.
Now, in single player this works perfect for obvious reasons. I have a OnComponentBeginOverlap and a OnComponentEndOverlap triggering actions. Player leaves, the door closes.
My multiplayer set up is roughly the same except, I made Custom Events and turned on Multicast. so when someone enters the trigger area, it triggers a boolean(set to replicate) thru the multicast custom event. (Here I’m still trying to understand when to use Replicators and Switch Has Authority nodes)
My problem is when all the characters are in the trigger box and one character leaves, the door shuts.
I know I’m missing something/s. Can anyone direct me to how I should set this up? I feel it will shed some light on alot of things I might be doing wrong or don’t understand.
Btw I’m new to coding for multiplayer on UE4.
Thanx in advance.