Mining Drone

Type: NPC brain
Level: not in gallery
Pages: 1
Description:  Found in the Mining Drone Character model. A follower character that fires blue plasma balls at the enemy.When not attacking the mining drone mines (removes terrain)and produces  Kodite Crystals.

Kode

  1. WHEN [not has power]
  2. …WHEN [interacted] DO [power on]
  3. …/…WHEN DO [objvar:target][equals][it]
  4. …/…WHEN DO [play fx][Block Impact]
  5. …/…WHEN DO [team][equals][objvar:target][team]
  6. WHEN [has power]
  7. …WHEN DO [play fx][fx:Hover Rings]
  8. …WHEN [countdown timer][0.5]
  9. …/…WHEN [duration timer][3] DO [say][text:Hello][type on speed][6]
  10. …/…/…WHEN [started to] DO [emote][Cheer]
  11. WHEN [distance to][objvar:target][less than][20][and][not][boolvar:digging] DO [move][with flying][with swimming][toward][target][position][plus][up]
  12. WHEN [enemies][objects closer than][2] do {objvar:my enemy][equals][it]
  13. …WHEN [else]
  14. …/…WHEN [not][objvar:target][moving]
  15. …/…/…WHEN [countdown timer][4]
  16. …/…/…/…WHEN [started to] DO [dodge][in direction][world down][at speed][0.75][distance][1]
  17. …/…/…/…WHEN [started to][bump terrain] DO [boolvar:digging][equals][true]
  18. WHEN [boolvar:digging]
  19. …WHEN DO [fall]
  20. …WHEN DO [say][text:Digging…]
  21. …WHEN DO [emote][Taunt]
  22. WHEN [not][dodging]
  23. …WHEN DO [play fx][fx:Spark emitter][at socket][mouth]
  24. …WHEN [countdown timer][7][in frames][loop] DO [subtract terrain][cylinder][height][0.8][radius][1]
  25. …/…WHEN DO [play fx][fx:Stone explosion][scale][0.5]
  26. …WHEN [countdown timer][1.5]
  27. …/…WHEN [(][random number][as integer][1][to][4][)][equal to][1] DO [create][Kodite Crystal][at position][position][plus][world down][multiplied by][0.25
  28. ../…/…WHEN DO [play sound][Voice Mining Drone Positive]
  29. …/…/…WHEN [else] DO [play sound][Voice Mining Drone Negative]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: