LocHa Posted February 6, 2015 Share Posted February 6, 2015 Wassap erybody, I have some questions regarding checking status in the game, hope someone can help:1. Does the game constantly checking a character's stats (health, sanity, hunger)? If yes, where can I find it? Can I put in a simple if (hunger condition) then (set speed) in charater's lua file? Or the base speed is permanent in the "creating character" process. Link to comment https://forums.kleientertainment.com/forums/topic/50625-questions-about-health-checking-function/ Share on other sites More sharing options...
LocHa Posted February 6, 2015 Author Share Posted February 6, 2015 I'm so sorry for the triple post! Apparently somehow my laptop decided to post 3 posts in a row when I was writing this .Hope any mod can help me delete them since I can't find the option anywhere. Going on with the topic: If there is no such function, where should I try implement one to? Thanks for helping. Link to comment https://forums.kleientertainment.com/forums/topic/50625-questions-about-health-checking-function/#findComment-610496 Share on other sites More sharing options...
rezecib Posted February 6, 2015 Share Posted February 6, 2015 (edited) Does the game constantly checking a character's stats (health, sanity, hunger)? If yes, where can I find it? Can I put in a simple if (hunger condition) then (set speed) in charater's lua file? Or the base speed is permanent in the "creating character" process. Look at scripts/prefabs/wolfgang.lua. That's almost exactly what that character does. As for the speed part, look at scripts/prefabs/locomotor.lua. You probably want to be setting an external speed multiplier. Edited February 6, 2015 by rezecib Link to comment https://forums.kleientertainment.com/forums/topic/50625-questions-about-health-checking-function/#findComment-610516 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