Hey im thinking about making a stamina system for a gamemode Im working on. The problem is the only way I can think to do it is if I store the stamina variable on the client side, But I have been told this is bad so Is there anouther way to do it? Also I have no code becuase I have no started. I know I will hit this problem and I dont know a way around it
Set/GetNWInt may help you out here
You can handle everything in a shared hook meaning the variable won't need to be networked ( except when resetting it such as on PlayerSpawn )
Take a look at these:
Skeleton of a stamina system: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_systems/basic_stamina_system/sh_stamina_system.lua[/url]
Basic: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_systems/basic_stamina_system/sh_basic_stamina_system.lua.html[/url]
Extended: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_systems/basic_stamina_system/sh_extended_stamina_system.lua.html[/url]
Remove .html to view .lua files; html doesn't copy well.
Sorry, you need to Log In to post a reply to this thread.