Key Handler Node: Difference between revisions
Tayfunwiki (talk | contribs) (Created page with "..") |
Tayfunwiki (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
.. | [[File:Key Handler Node.png|thumb|Key Handler Node]] | ||
= Key Handler Node = | |||
== Description == | |||
The Key Handler Node is designed to pause the flow and listen for specific key events — KeyDown and KeyUp — for an actor within the system. It resumes the flow once the designated interaction is detected. | |||
== Ports == | |||
=== Input === | |||
* The actor expected to interact with the specified key. | |||
=== Output === | |||
* Out: On key interaction by the connected actor, the flow continues from this port. | |||
* Actor Is Not Player: If the connected actor is an AI, the flow proceeds from here without waiting for key interaction. | |||
== Behavior == | |||
The node remains idle until the specified key event occurs. If an AI actor is connected, it bypasses the key interaction check and directly outputs from "Actor Is Not Player". | |||
== Example == | |||
In a scenario where a player needs to press 'Space' to advance, connect the player entity to the node. The flow will halt until 'Space' is pressed. If an AI is connected, the flow will bypass the key check, continuing from the "Actor Is Not Player" port. |
Latest revision as of 07:52, 3 March 2024
Key Handler Node
Description
The Key Handler Node is designed to pause the flow and listen for specific key events — KeyDown and KeyUp — for an actor within the system. It resumes the flow once the designated interaction is detected.
Ports
Input
- The actor expected to interact with the specified key.
Output
- Out: On key interaction by the connected actor, the flow continues from this port.
- Actor Is Not Player: If the connected actor is an AI, the flow proceeds from here without waiting for key interaction.
Behavior
The node remains idle until the specified key event occurs. If an AI actor is connected, it bypasses the key interaction check and directly outputs from "Actor Is Not Player".
Example
In a scenario where a player needs to press 'Space' to advance, connect the player entity to the node. The flow will halt until 'Space' is pressed. If an AI is connected, the flow will bypass the key check, continuing from the "Actor Is Not Player" port.