Doc:2.6/Manual/Game Engine/Logic/Actuators/Game
< Doc:2.6 | Manual | Game Engine | Logic | Actuators(Doc:2.5/Manual/Game Engine/Logic/Actuators/Gameから転送)
Game Actuator
The Game actuator allows the user to perform Game-specific functions, such as Restart Game, Quit Game and Load Game.
See Actuator Common Options for common options.
Special Options:
- Game
- Load bge.logic.globalDict
- Load bge.logic.globalDict from .bgeconf.
- Save bge.logic.globalDict
- Save bge.logic.globalDict to .bgeconf.
- Quit Game
- Once the actuator is activated, the blenderplayer exits the runtime.
- Restart Game
- Once the actuator is activated, the blenderplayer restarts the game (reloads from file).
- Start Game From File
- Once the actuator is activated, the blenderplayer starts the .blend file from the path specified.
- File
- Path to the .blend file to load.
- Notes
If you use the keyboard sensor as a hook for the Esc key, in the event that the quit game actuator fails, such as an error in a python file, the game will be unable to close. Data may be recovered from quit.blend
File » Recover Last Session