Jump to content

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...