I am working on my Mod's Hud and I added new features but I want to make a text connect to a server. Like /connect but in UI script form.
This is what I got.
itemDef
{
name mainmenu
text "Update"
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
textstyle ITEM_TEXTSTYLE_NORMAL
rect X (Y+ELEM_H) W ELEM_H
textalign ALIGN_CENTER
textscale .416
forecolor 1 1 1 1
visible MENU_TRUE
action
{
play "sound/misc/menu1.wav";
(Here I need the UI Script to connect to 67.163.190.79:32123)
}
}
So that every time you click Update (Since the server is up 24/7) you connect to the Mod's host server. I tried nearly everything that came to mind. I searched but I didn't find anything. Can I get the UI Script Action.