I’m working on a single player/offline title and was wondering if using OnRep variables to make things cleaner (like updating the HUD when the Health variable changes) is a good idea.
Are there any reasons why I should not do this?
Thanks
I’m working on a single player/offline title and was wondering if using OnRep variables to make things cleaner (like updating the HUD when the Health variable changes) is a good idea.
Are there any reasons why I should not do this?
Thanks
It wouldn’t hurt anything but it doesn’t really gain you anything other than it will be easier to convert the game to multiplayer if you ever desired. OnRep simply tells the server to perform the action or update the variable to all clients connect to the server. Since it’s offline it does nothing.