Blender Git Commit Log

Git Commits -> Revision 11e3b6b

Revision 11e3b6b by Dalai Felinto (master)
February 18, 2011, 10:10 (GMT)
BGE Expressions: convert "n" to real n
example of usage:

0) Game Properties: text (String) and log (Boolean=True)
1) Keyboard Sensor set to AllKeys with log as logging and text as Target
2) Expression Controller: text=="quitn"
3) Game Actuator: Quit Game

[1] <-> [2] <-> [3] .:. this will quit the game when you write quit + Enter

4) Keyboard Sensor: set to Return
5) And Controller
6) Property Actuator: Assign text property to ""

[4] <-> [5] <-> [6] .:. this will reset the string everytime you press Enter

# # # # # # # # # # # # # # # # # # # # # # #
Since the change is in the InputParser.cpp it actually affects all the text
input fields in the Logic Editor. So for instance you can use it in the
assign Property Actuator.
# # # # # # # # # # # # # # # # # # # # # # #
Connect an expression controller: text="idclipn" with an actuator to disable
the Collision of your walls and you can re-create Doom with only Logic Bricks (:

Commit Details:

Full Hash: 11e3b6b0b5e107a5aa765c3d5a814f304ca3dafa
SVN Revision: 34957
Parent Commit: 708df39
Lines Changed: +24, -1

2 Modified Paths:

/source/gameengine/Expressions/InputParser.cpp (+23, -1) (Diff)
/source/gameengine/Expressions/InputParser.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021