Build variable array: Mutator or Rep. Info?
Posted: Thu Mar 01, 2018 8:56 am
I have a struct array that contains variables. I need to write into the struct(s), the functions are already written. The struct array is contained in my player replication info. Would it be a better idea to hold functions that write to the struct array, contained in the player replication info class, in the player replication class itself or to use a mutator? It would do something like this:
Grab player and possessed scripted pawn,
Grab variables from scripted pawn,
Copy variables into struct array,
Back this struct array up into a .ini file. (Mutator should handle this)
I'll be using this for backing up mostly small strings and integers to modify health, damage, and some other stuff. I already have that planned and coded, but I'm not sure where I should throw my functions.
Grab player and possessed scripted pawn,
Grab variables from scripted pawn,
Copy variables into struct array,
Back this struct array up into a .ini file. (Mutator should handle this)
I'll be using this for backing up mostly small strings and integers to modify health, damage, and some other stuff. I already have that planned and coded, but I'm not sure where I should throw my functions.