Void Tendril – Aggressive

Type: Enemy Brain
Level: not in gallery
Pages: 2
Description: Found in the Void Tendril prop. When a player is in the trigger zone of the plant the power is turned on which creates a striking animation and anything within its see sensor is damaged.

Kode

page 1 @Power Changed- Attack

  1. WHEN [started to][in trigger zone][player] DO [toggle][has power]
  2. …WHEN DO [switch page][@Attack]

page 2 @Attack

  1. WHEN DO [collidable][equals][false]
  2. WHEN [started to][countdown timer][0.67]
  3. …WHEN [for each of][see] DO [damage][it]
  4. …/…WHEN DO [play fx][fx:Strike Impact Explosion][on][it]
  5. …WHEN [else][countdown timer][2.5]
  6. …/…WHEN DO [collidable][equals][true]
  7. …/…WHEN DO [switch page][page:@Power changed-Attack]

Alterations

To make it a moving monster try adding:

page 1

  1. WHEN [distance to][my enemy][greater than][5] DO [move][toward][my enemy]
  2. …WHEN [else]
  3. …/…WHEN [started to][in trigger zone][player] DO [toggle][has power]
  4. …/…WHEN DO [objvar:my enemy][equals][it]
  5. …/…WHEN DO [switch page][@Attack]

You may also like to toggle their vulnerability so your player can attack it.

 

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: