Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

By default, Alt-F4 does not work in a UDK game.

How would I go about adding unreal script to cause the game to exit to desktop upon Alt-F4?

Update

This is what I've tried:

; Primary default bindings
.Bindings=(Name="F4",Command="exit",Alt=True)   
.Bindings=(Name="F10",Command="ToggleInventory")
.Bindings=(Name="SpaceBar",Command="GBA_Jump")
share|improve this question
add comment

1 Answer

That would be your DefaultInput.ini. If you add something along the lines of +Bindings=(Name="F4",Command="exit",Alt=True), that should do the trick. The next time you run the game, the UDKInput.ini will be rebuilt using a combination of DefaultInput.ini and the BaseInput.ini in Engine\Config.

share|improve this answer
    
Please see my update above. I have tried starting the line with "." or "+", but both do not work. I included the other commands in my update above to show where within DefaultInput.ini I have inserted the line for Alt-F4 –  George W Bush Jan 7 '13 at 18:12
1  
A little further down in the file, F4 is being re-bound to the command "Playersonly". Comment that line out and you should be good-to-go! –  Phillip Jan 7 '13 at 19:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.