Parusoid Posted November 4, 2017 Share Posted November 4, 2017 There is "timeleft" local variable in antlion.lua that determines when the sinkholes occurs. How do I import that value to my mod that displays time until next sinkhole/boulder spawn? Can it be even imported since it is local variable? Link to comment https://forums.kleientertainment.com/forums/topic/83743-how-to-get-local-value-from-another-lua/ Share on other sites More sharing options...
Serpens Posted November 4, 2017 Share Posted November 4, 2017 not possible. But in most cases there are other way to get the same value. In this cause I'm sure this works: inst.components.timer:GetTimeLeft("rage") Link to comment https://forums.kleientertainment.com/forums/topic/83743-how-to-get-local-value-from-another-lua/#findComment-970638 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