sábado, 2 de abril de 2016

BP Compendium: Gate

Gate


Gate is a flow control node that can be open or closed. If it is open it allows the execution of the actions related to the Exit pin.

Input

  • Enter: Execution pin that receives the current flow of execution.
  • Open: Execution pin that changes the state of the gate to Open.
  • Close: Execution pin that changes the state of the gate to Close.
  • Toggle: Execution pin that toggle the current state of the gate.
  • Start Closed: Boolean variable that determined if the "Gate" should start running in the "Closed" state.

Output

  • Exit: This pin will execute if the gate is open.


Example Usage

In the example below we have an Actor called "HealthGenerator". When the player is colliding with this actor, his health will be restored slowly every "Tick" event. 

If the player stops colliding with the "HealthGenerator", the "Gate" will be closed and the actions that restore health are no longer performed. The action "Min" is used so that the value of the variable "Health" is never greater than 100.

Click to enlarge