SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 08-04-2020   #1
NAR the Fox
Self-taught Lua Amateur
 
NAR the Fox's Avatar
Default Setting console variables via Lua

Hello. Is there, by any chance, a way to change a console variable via Lua, or is that something I'd have to create a workaround for? Any help would be appreciated.
__________________
You can just call me "NARbluebear"
My YouTube Channel
NAR the Fox is offline   Reply With Quote
Old 08-05-2020   #2
Kaysakado
Default

It depends exactly what you're looking to do. You can't change a console variable's value directly, but you can use the COM_BufInsertText function to force a player to execute something in the console. This has some pitfalls, as it literally is as if that player wrote the command in and executed it themselves.
Kaysakado is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.