Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Terminate Game

Author
Message
DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 16th Jul 2009 23:25
I've been working toward a built game that when loaded up will go straight into the game. Meaning no menus but the loading screen. I also hoped that when in-game i could use the "exit" key on my keyboard to terminate the game and go back to the desktop or w/e I was doing. So far everything works expect for the termination of the game when esc key is pressed. When i hit it, the game ends up reloading itself from the loading screen than goes in-game again. I'm trying to do this since im using an external program to load up the game, and this program uses its own menu.

Is there any way to close the game without going to the main menu and hitting exit?

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 17th Jul 2009 02:17
you try:




DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 17th Jul 2009 02:54 Edited at: 17th Jul 2009 02:55
Your script is what i have built into the setuplevel.fpi or one of those that are involved in build game myself already(cant remember now). Didnt think quitgame was an actual scripting command. When i go on my main comp which has fpsc ill give it a shot. Thanks

[img][/img]

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 17th Jul 2009 03:18
I looked into the setuplevel.fpi and the titlepage.fpi files and found that to exit game during gameplay it uses continuegame,destroy and the title page uses what I have listed.


DarkFrost
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: ON, Canada
Posted: 17th Jul 2009 03:34
Its okay I just added quitgame to the script i already myself and it works. Now when your in-game and hit exit it takes you back to the external menu from the launch program. Thanks a bunch for letting me know about quitgame

Mods you can lock this thread now for there is no use of it anymore.

[img][/img]

Login to post a reply

Server time is: 2024-11-25 03:48:08
Your offset time is: 2024-11-25 03:48:08