help with random health regen mutator

Since your code is obviously UnrealScript (and derived from a UT class, at that), you need to be using this code in UT3 (and asking about it on the UT3 forums, not a UE4 C++ subforum). You can’t use that code in UE4.