How do you get a PlayerPawn setting?
Posted: Sun Sep 29, 2019 6:20 pm
Probably a stupid question, how do you get a setting like MouseSensitivity,FOV from a player on an online game?
I've only been able to get the severs setting using PlayerPawn(playerReplicationInfo), am I missing something simple like using the wrong function in the mutator class(Currently it's in ModifyPlayer), or will I have to make a new replication class for players.
Mutator snippet:
I've only been able to get the severs setting using PlayerPawn(playerReplicationInfo), am I missing something simple like using the wrong function in the mutator class(Currently it's in ModifyPlayer), or will I have to make a new replication class for players.
Mutator snippet:
Code: Select all
if(PlayerPawn(p) != None){
Level.Game.LocalLog.LogEventString(PlayerPawn(p).Player.CurrentNetSpeed);
Level.Game.LocalLog.LogEventString(PlayerPawn(p).MouseSensitivity);
Level.Game.LocalLog.LogEventString(PlayerPawn(p).DodgeClickTime);
Level.Game.LocalLog.LogEventString(PlayerPawn(p).FovAngle);
}