There are a few special variables available, for quickly accessing data in the current scene, using one of the actions handling variables. The names of these variables look like this: "name.attribute". Use for example player1.health for getting or changing the variable storing the health of the object with the game AI behavior of a scene node with the name 'player1'.
The movement speed of an object with the behavior 'Game Actor with Health', 'Object or Person controlled by keyboard' or 'First Person Shooter Style Controlled'. Use for example player1.movementspeed for getting or changing the variable storing the movementspeed of the object with such a behavior of a scene node with the name 'player1'.
|