Hey, i need help with the blueprint here: So first of all: when a player enters the Collision Sphere then the Command is sent to all Players and the server. So i checked if the "Other Actor" is the same as the Controlled Pawn (i found it on a differed thread). That way worked well when i wanted to show a widget only on the Characters that are acutally inside the Sphere.
My Problem here is that when Player one enters the Collision the Object gets Destroyed but when Player two enters the Collision first, nothing happens. Can someone help me?
asked Feb 16 '19 at 03:16 AM in Blueprint Scripting
This won't work because you are always checking the overlap against player controller "0". In a multiplayer game you would have multiple controllers, so for it to work with player 2, you would need to set player controller to "1". But then it won't work with player 1 (controller 0). What you should be doing, is destroying the object based off of the "actor" overlap not the controller. So instead of checking if the overlap is the pawn controlled by a controller just check if it's the "pawn" directly. So cast to "pawn/character" class and be done with it. Forget the controller stuff.
answered Feb 16 '19 at 06:23 AM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here