As my knowledge of ue4 multiplayer replication, it enable all the players to have their own personal status, and live in the same world. How to let the world differ according to player setting? Just like scenery style selection in dota, playerA choose styleA while playerB choose styleB, but they are still in the same game world
I post this thread mostly because I am trying to achieve an RTS fog of war for multiplayer, but I have no idea how to show/hide Specific actors according to player faction in a multiplayer game, and spectator even able to switch visions.
i belive that would be done locally tho. The map itself would have the fog of war, the map, would be done locally. The updates would be from the player location on that map (pulled from the server, or locally). The fog would then be “lifted” locally as well. The fog of war (per player) is done locally, at least, from my experience. If it was server sided, you would have the entire player base using 1 shared map and fog of war …
Maybe it’s a silly question, but how to make fog locally? As my thought, the base theory should be setup the visibility of army units per player, but no matter how I tried, the visibility is always replicated
So - are you looking to have a fog that is always on the map except where you are - or - is this for like the mini map?
Is this a fog sheet that just “removes” when the player has explored the area and always is removed, or, something that sticks around … foggy where the player isnt?
Here is my guess:
Mini map would be 2 maps - one with fog, one without. then it would be a “blend” of the 2 depending where the player is, or, has been.
the always there fog would simply be based on the start distance for the fog itself.
My desire fog effect is “always on the map except where you are”, I thought is to use bounding sphere in each of friend unit to toggle the visibility of enemy units. This is not hard in a single player game, the problem is how to do this locally in a multiplayer game, As I tried, the visibility of actors is always replicated
I assume it replicated the “first player on the server” correct?
Like who ever creates the game, is the one it replicates? I ask because I had this issue with Ark when i was modding for it. Using “Player 0” as reference always defaults the replication to the first person on the server (or the one that created it).
I would assume it worked perfectly locally, the setup looks good in that respect. I think the resolution, in my case (same issue result, different situation), was to replace “Player 0” with “owning player”. Its been about a year, so, my memory is a little foggy on the resolution, but, i do remember the effect i was getting was exactly the same.