On Key Press
On Key Press
Pressed
Not Player
- Group
- Events
- In the node menu
- Events › On Key Press
- Where it can be used
- Scheme graphs
What it does
Section titled “What it does”An On Key Press node holds the flow until the player of the chosen actor presses a key, or lets it go. Then it continues through Pressed.
It only listens when a player on this machine plays that actor. If nobody does, the flow goes on through Not Player at once. There is no waiting.
Example
Section titled “Example”On Key Press
Space pressed
if Conspirator is played on this machine
Pressed
Not Player
When to use it
Section titled “When to use it”Use it when a scheme needs a key from the player, such as pressing Space in time. Link Not Player to what should happen when there is no one at this machine to press it.
Use Show Dialogue instead when the player should pick from written choices.
Good to know
Section titled “Good to know”- With no key chosen, the card warns that the node never continues for a player.
- The key is read through the legacy Input Manager, as the Key tooltip says.
- A key pressed while the scheme is paused is kept and handled when it is resumed.
- When the chosen actor is not available, the flow stops here.
- The actor is read when the node first runs. A load does not change whose key it waits for.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Player Is | Actor | ActorRef | "Conspirator" | The node only waits for the key when the player on this machine plays this actor. |
| Key | Key | enum (KeyCode member name) | "Space" | The key, read through the legacy Input Manager. |
| When | Kind |
| "Down" |
Outputs
Section titled “Outputs”- Pressed
- Not Player
In a draft
Section titled “In a draft”"type""On Key Press""set"keysActor,Key,Kind"then"keys"Pressed","Not Player"
"<alias>": { "type": "On Key Press", "then": { "Pressed": "<alias>", "Not Player": "<alias>" }}