Hi,
I wrote mutator WeaponConfig with GUI.
Game admin send in console "mutate weaponconfig menu"
Then Mutator open for that playercontroller some GUI menu with weapon settings.
Player change some settings in this menu (client side), then press OK and some long string with settings that player made must be sent to server.
How to to this? I read that Client to Server replication works only for PlayerController->Pawn variables. But I use separete mutator this values have no relation to Pawn values so Client to Server replication wont work.
Now I use some bad hack: when menuclosed I call on client GUIMenu.PlayerOwner().ConsoleCommand(mutate$"some loong string with parameters")
this is bad solution. + I found new bug because of console command string length limitation. Shure I can make routine for few mutate calls but I feel that this is bad solution
I wrote mutator WeaponConfig with GUI.
Game admin send in console "mutate weaponconfig menu"
Then Mutator open for that playercontroller some GUI menu with weapon settings.
Player change some settings in this menu (client side), then press OK and some long string with settings that player made must be sent to server.
How to to this? I read that Client to Server replication works only for PlayerController->Pawn variables. But I use separete mutator this values have no relation to Pawn values so Client to Server replication wont work.
Now I use some bad hack: when menuclosed I call on client GUIMenu.PlayerOwner().ConsoleCommand(mutate$"some loong string with parameters")
this is bad solution. + I found new bug because of console command string length limitation. Shure I can make routine for few mutate calls but I feel that this is bad solution
Last edited: