Trigger Lightning Strike

Type: Assembly Brain
Level: not in gallery
Pages: 1
Description: Found in the Lightning Bolt assembly. When the player enters the trigger zone a lightning bolt will hit the ground with accompanying light and sound.


  1. WHEN [once][in trigger zone][player] DO [play fx][fx:Lightning bolt]
  2. …WHEN DO [play sound][sound:Weather Lightning Strike]
  3. WHEN [after][in trigger zone][player]
  4. …WHEN [after][countdown timer][0.3]
  5. …/…WHEN DO [power on]
  6. …/…WHEN[after countdown timer][0.3]
  7. …/…/…WHEN DO [power off]


Continued strikes
This brain will only do a lightning bolt once. To have continual strikes if the player remains in the trigger zone change the brain like this:

  1. WHEN [in trigger zone][player] DO [boolvar:in range][equals][true]
  2. WHEN [no longer][in trigger zone][player] DO [boolvar:in range][equals][false]
  3. …WHEN DO [power off]
  4. WHEN [boolvar:in range]
  5. …WHEN [started to] DO [power on]
  6. …WHEN [started to][countdown timer][0.3] DO [power off]
  7. …WHEN [countdown timer][3][loop][trigger on start] DO [play fx][fx:Lightning bolt]
  8. …/…WHEN [started to] DO [power on]
  9. …/….WHEN DO [play sound][sound:Weather Lightning Strike]
  10. …WHEN [countdown timer][3.3][loop] DO [power off]

To make the strike a hazard

Add as a child line to line 4

WHEN [for each of][in trigger zone][player] DO [damage][it][20]
…WHEN DO [push][it][away from][me][strong]

Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: