Game State Controller Object
From Runic Games Wiki
Contents |
Game State Controller
Description
This Level Object is used to ...
Location
Right-click on an empty space in the Layout Scene Manager and choose Logic > Game State Controller from the list.
Properties
| Name | Type | Description | Read Only |
|---|---|---|---|
| HELP | |||
| TIP | |
The tip to show. | |
| PLAYER | |||
| INVULNERABLE | |
If True the Player will be invulnerable. | |
| PROPERTIES | |||
| ENABLED | |
Set the Game State Controller enabled or not. Note: If True the game state will be set when the level loads. | |
| STATE | |
Set the game state.
|
|
Input Events
- Enable
- Enable the Game State Controller.
- Disable
- Disable the Game State Controller.
- Warp Pets to Player
- Teleport pets to the Player.
- Heal Player
- Heal the Player.
- Show Tip
- Show the set "Tip" property.
- Exit to Main Menu
- Exit the game and return to the main menu.
- Save Player
- Save the game.
Output Events
- Enabled
- This event will be fired when the Game State Controller receives an "Enable" Input event.
- Disabled
- This event will be fired when the Game State Controller receives a "Disable" Input event.
- Player HP Below 90 PCT
- This event will be fired when the Player's health points reach or drop below 90%.
- Player HP Below 80 PCT
- This event will be fired when the Player's health points reach or drop below 80%.
- Player HP Below 70 PCT
- This event will be fired when the Player's health points reach or drop below 70%.
- Player HP Below 60 PCT
- This event will be fired when the Player's health points reach or drop below 60%.
- Player HP Below 50 PCT
- This event will be fired when the Player's health points reach or drop below 50%.
- Player HP Below 40 PCT
- This event will be fired when the Player's health points reach or drop below 40%.
- Player HP Below 30 PCT
- This event will be fired when the Player's health points reach or drop below 30%.
- Player HP Below 20 PCT
- This event will be fired when the Player's health points reach or drop below 20%.
- Player HP Below 10 PCT
- This event will be fired when the Player's health points reach or drop below 10%.
- One Player in Level
- This event will be fired when one Player is in the level.
- Two Players in Level
- This event will be fired when two Players are in the level.
- Three Players in Level
- This event will be fired when three Players are in the level.
- Four Players in Level
- This event will be fired when four Players are in the level.