sábado, 26 de março de 2016

BP Compendium: Set Timer by Event

Set Timer by Event


A timer is programmed to perform a given event after finishing the specified time.

Input

  • Event: A reference to the event.
  • Time: Time in seconds.
  • Looping: Indicates whether the Timer should always repeat or if it's just one execution.

Output

  • Return Value: A reference to the Timer known as "Timer Handle" which can be stored in a variable of the type "Timer Handle" so that it can be handled later.


Example Usage

When the "E" key is pressed, a timer is activated to run the custom event "DetonateBomb" after 60 seconds.

Click to enlarge


Another timer is programmed to call every 5 seconds an event that creates an enemy ship.

Click to enlarge