ngoctienvt Posted January 10, 2015 Share Posted January 10, 2015 I have tried the console that c_find('wilson').components.health:SetPercent(1) to change my client health and it worked. But I wonder is there anyway to change speed of them.I have tried c_find('wilson').components.speed:SetValue(5) but it didn't work. Can anyone help me? Thank you. Link to comment https://forums.kleientertainment.com/forums/topic/48842-change-speed-for-clients/ Share on other sites More sharing options...
Ubiquitous Posted January 10, 2015 Share Posted January 10, 2015 I have just started to delve into the whole LUA environment so I am not to efficient or know much about it but a loop might workfor k,v in pairs(AllPlayers) do c_speed(20) endWhere the (20) is you can set the bonus speed. I have not had any clients on my server to test out if it will work with them as well. I'll take a look more into the code and see if I can find out something in the event that it doesn't work for clients. Link to comment https://forums.kleientertainment.com/forums/topic/48842-change-speed-for-clients/#findComment-599726 Share on other sites More sharing options...
rezecib Posted January 10, 2015 Share Posted January 10, 2015 (edited) @ngoctienvt, You cannot do this. If clients could, the game would be a cheatfiesta. Edit: misinterpreted your post, thought you were joining servers and trying to change your stats. As the host, though, you can change speed by accessing the locomotor component's runspeed and walkspeed fields. If you do this as a client you will only confuse the action prediction and cause rubberbanding.c_find('wilson').components.locomotor.runspeed = 7.5The default runspeed is 6, and walkspeed is 4. Edited January 10, 2015 by rezecib Link to comment https://forums.kleientertainment.com/forums/topic/48842-change-speed-for-clients/#findComment-599728 Share on other sites More sharing options...
ngoctienvt Posted January 10, 2015 Author Share Posted January 10, 2015 @rezecib: thanks for you help. It worked . Link to comment https://forums.kleientertainment.com/forums/topic/48842-change-speed-for-clients/#findComment-599736 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now