PDA

View Full Version : starting a game using unrealscript


spark
28th Feb 2006, 03:48 PM
Hiya,

I think I read this somewhere (but can't find it now) saying this wouldn't work with the runtime, but is it possible to start a game using unrealscript?

Say I've got a button and its OnClick() callback has code like:

local string s;

s = "myserver.com:7777"
startgame( s );

Is something like this possible?

Angel_Mapper
28th Feb 2006, 03:55 PM
Should work:
PlayerOwner().ConsoleCommand("open"@s);

spark
28th Feb 2006, 04:42 PM
Should work:
PlayerOwner().ConsoleCommand("open"@s);

Worked great.

Thanks!