how to exit from unreal via script?

Discussions about Coding and Scripting
User avatar
Voodoo Doll
Average
Posts: 42
Joined: Wed Aug 03, 2011 2:27 am
Location: Russian Federation

how to exit from unreal via script?

Post by Voodoo Doll »

Need some sort of exit command implementation.
please note that this

Code: Select all

playerpawn(owner).consolecommand("debug gpf");
is not suitable
User avatar
papercoffee
Godlike
Posts: 10240
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: how to exit from unreal via script?

Post by papercoffee »

sounds like you need a "boss key" :mrgreen:
User avatar
Voodoo Doll
Average
Posts: 42
Joined: Wed Aug 03, 2011 2:27 am
Location: Russian Federation

Re: how to exit from unreal via script?

Post by Voodoo Doll »

papercoffee
that's right description, thanks!

I'm creating a game that will be formed as UT level (.unr file), so i need to place "exit" button in this game, which will force exit without pressing "exit" in UT menu
User avatar
anth
Adept
Posts: 253
Joined: Thu May 13, 2010 2:23 am

Re: how to exit from unreal via script?

Post by anth »

the consolecommand you need is "quit"
User avatar
papercoffee
Godlike
Posts: 10240
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: how to exit from unreal via script?

Post by papercoffee »

somehow you can bind this to a key ...but I don't know how, never needed it.
User avatar
anth
Adept
Posts: 253
Joined: Thu May 13, 2010 2:23 am

Re: how to exit from unreal via script?

Post by anth »

set input q quit
User avatar
Voodoo Doll
Average
Posts: 42
Joined: Wed Aug 03, 2011 2:27 am
Location: Russian Federation

Re: how to exit from unreal via script?

Post by Voodoo Doll »

anth
thanks a lot, this it the thing i needed
didn't knew about this command...
User avatar
Shadow
Masterful
Posts: 736
Joined: Tue Jan 29, 2008 12:00 am
Personal rank: Mad Carpenter
Location: Germany

Re: how to exit from unreal via script?

Post by Shadow »

the most simple command is

Code: Select all

consolecommand("exit")
Image
User avatar
Shadow
Masterful
Posts: 736
Joined: Tue Jan 29, 2008 12:00 am
Personal rank: Mad Carpenter
Location: Germany

Re: how to exit from unreal via script?

Post by Shadow »

hm well don't know whether the commands "quit" and "exit" are different, I didn't know that a quit command exists at all, for the exit command I'm absolutely sure that'll suite Voodoo Doll's needs
Image
User avatar
anth
Adept
Posts: 253
Joined: Thu May 13, 2010 2:23 am

Re: how to exit from unreal via script?

Post by anth »

they're aliases.