How to render pawns for a specific client only? – Programming & Scripting


i need to create a team-based visibility system

i have two teams, and i want to make all teammates visible for each other, but invisible for another team members, to reveal enemies in a close range only

i’m struggling at a first stage, i set pawns to be “Hidden in Game” by default, but i cant find a way to render pawns to a specific client only

i use a custom event for owning client, to reveal teammates, but both teams reveals anyway, when pawns of the opposite team is spawned

so, how can i render pawns for specific client only (and other clients in his team), and hide it from other clients of the opposite team?
and later, reveal the pawns of the opposite team in a vision range?

Are they not supposed to bump into each other?

use SetVisibility on Client, hidden in Game seems to replicate.

also use repnotify otherwise client who join late or havent loaded wont work



Source link

Leave a Comment