Czeraphine Posted December 17, 2016 Share Posted December 17, 2016 Hello there! I'm pretty much a code newbie, and still trying to learn the ins and outs of LUA. My question might be silly and a bit basic, but is there a way to print the output of a 1 line console code on your screen persistently? Like, typing c_countprefabs("walrus_camp") would show on your screen somewhere instead of only the console. Thanks in advance! Link to comment https://forums.kleientertainment.com/forums/topic/72587-on-screen-console-output/ Share on other sites More sharing options...
Mobbstar Posted December 17, 2016 Share Posted December 17, 2016 You would have to make a widget to do that. e.g. local numbertext = Text(BUTTONFONT, 24, c_countprefabs("walrus_camp") --Make some text numbertext:SetPosition(0,0) --Put text somewhere (starts at bottom left) numbertext:SetString( c_countprefabs("walrus") ) --Change the text on the fly numbertext:Kill() --Your services are no longer needed Link to comment https://forums.kleientertainment.com/forums/topic/72587-on-screen-console-output/#findComment-849734 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