Hello, I’m rehashing this topic.
Trying to set collision based on team so only specific teams can cross a boundary. I’d like to have this adjusted at runtime by changes on the player pawn, since the same pawn is used for both teams but is updated at possession of player.
Ie: pawn is neutral when server spawns it, player possesses it, it gets the team from player state and updates the collision in the pawn for that team.
My problem is the collision works but on a dedicated server a player can clip it, seems like a replication problem where wither client side the collision is happening and not server or other way around. And the jagged movements when entering the collision is caused by it resynching player position.
What I do
Barrier actor has a enum exposed at spawn for its team. This is placed in level and changed to a or b… Let’s use a for example.
Construstruvtin changes channel based on the enum to say what team channel to block.
Pawns… An actor, with collision defaulted to overlap all when posses based on the enum it changes its team to block or overlap. This happens on the possess node. Which I’m assuming in the pawn blue print is running as server since posses is a server command.
Wish I had some blue prints to show but I’m at work. Does a run on client need to be called here to update client side of the collision on itself?