Download

Function Library with static variables are shared across all clients ?

Hello,
I have created a function library that has a static TMAP which i use to save messages to display on screen however i am facing an issue where the last client that joins (when i use the option in engine to run 2 players) is the one which takes effect. as in its one instance shared for all controlled by the last client
for example im using it to store the mouse position and using the UI to read from the TMAP and display all keys. and it shows the mouse movement for the last client on all clients and server rather than showing each client data seperatly

Attached Header, CPP file, Player BP , UI BP

why is it shared between all clients ? i could not find a replication option to disable, i need it to be per instance rather than being shared between all clients

here is it
https://imgur.com/a/JhGE7Jj