Skip to main content
2.75 manual link, spelling
Source Link
p2or
  • 16.1k
  • 10
  • 87
  • 146

Its verryIt's very simple, you just have to connect a Game Actuator to your script Controller and set it to "Quit game"Game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode the manual.

Its verry simple, you just have to connect a Game Actuator to your script Controller and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

It's very simple, you just have to connect a Game Actuator to your script Controller and set it to "Quit Game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see the manual.

added 26 characters in body
Source Link
Hack0re
  • 298
  • 2
  • 11

Its verry simple, you just have to connect a Game Actuator to your script Controller and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

Its verry simple, you just have to connect a Game Actuator and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

Its verry simple, you just have to connect a Game Actuator to your script Controller and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

deleted 8 characters in body
Source Link
Hack0re
  • 298
  • 2
  • 11

Its verry simple, you just have to connect a Game Actuator and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu = True) # edit: ThisI linejust actuallytry notit workingworks.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

Its verry simple, you just have to connect a Game Actuator and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    gameactu = True # edit: This line actually not working

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

Its verry simple, you just have to connect a Game Actuator and set it to "Quit game".

Add this actuator to your script by doing this:

gameactu = cont.actuators['Game']

if posdiff < 0.0001: # You can also try 0.0002
    cont.activate(gameactu) # I just try it works.

    

Here a picture:

Quit game

You can do this without the Actuator, see:

http://www.blender.org/api/blender_python_api_2_74_release/bpy.types.GameActuator.html#bpy.types.GameActuator.mode

added 278 characters in body
Source Link
Hack0re
  • 298
  • 2
  • 11
Loading
Source Link
Hack0re
  • 298
  • 2
  • 11
Loading