Laser Cannon – Advanced

Type: Assembly Brain
Level: not in gallery
Pages: 1
Description: Found in the Laser Cannon Advanced Assembly. This cannon will track and send out a laser toward an enemy, will power up then shoot the enemy dead.

Kode

  1. WHEN [once] DO [team][equals][team 1]
  2. …WHEN DO [boolvar:done firing][equals][true]
  3. …WHEN DO [#pause attack][equals][3]
  4. …WHEN DO [#cannon range][equals][15]
  5. WHEN [team][equal to][neutral] DO [team][equals][team][1]
  6. WHEN [distance to][objvar:my enemy][greater than][#cannon range] DO [objvar:my enemy][equals][nothing]
  7. …WHEN DO [boolvar:enemy in range][equals][false]
  8. …WHEN [else] DO [boolvar:enemy in range][equals][true]
  9. WHEN [objvar:my enemy][equal to][nothing]
  10. …WHEN [enemies][objects closer than][#cannon range] DO [objvar:my enemy][equals][it]
  11. …WHEN [duration timer][0.3] DO [pitch][8][toward][position][plus][iwp:Laser Cannon Mount][forward]
  12. …WHEN DO [boolvar:firing][equals][false]
  13. …WHEN DO [boolvar:done firing][equals][true]
  14. …WHEN DO [objvar:charge effect][power off]
  15. …WHEN [else]
  16. …/…WHEN DO [draw line][red][from][fire point][position][to][my enemy]
  17. …/…WHEN [countdown timer][0.25] DO [pitch][toward][objvar:my enemy][center][slowly]
  18. …/…WHEN DO [iwp:Laser Cannon Mount][turn][toward][objvar:my enemy][center][angle][10]
  19. …/…WHEN [boolvar:done firing]
  20. …/…/…WHEN [boolvar:enemy in range]
  21. …/…/…/…WHEN [countdown timer][pause attack][loop]
  22. …/…/…/…/…WHEN [started to] DO [boolvar:firing][equals][true]
  23. …/…/…/…/…/…WHEN DO [#pause attack][equals][random number][2.5][to][3.5]
  24. WHEN [boolvar:firing]
  25. …WHEN [duration timer][1.5] DO [play fx][fx:Laser Cannon Charge][at socket][fire point]
  26. …WHEN [countdown timer][1.5]
  27. …/…WHEN [started to]
  28. …/…/…WHEN DO [shoot][in direction][forward][with damage][shoot damage][at speed][30][launch frequency][30][disallow friendly fire][unblockable]
  29. …/…/…WHEN DO [play fx][fx: Muzzle Flash – Laser Cannon][at socket][fire point][scale][1.5]
  30. …/…/…WHEN DO [boolvar:done firing][equals][true]
  31. …/…/…WHEN DO [boolvar:firing][equals][false]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: