Network Latency Compensation

Hello,

I’m trying to make a game where the game code optimizes/changes in game attributes when in latency to compensate for it. An example would be to increase Aim Assist level when in High latency to help the player. How can I get current network data/ latency data such that I can implement it in the code/ blueprint. Is it even possible?

Ideally what I would like to have is
If PING > 200 → AIM ASSIST LEVEL 5 (or something)
If PING < 30 → AIM ASSIST LEVEL 1