TNT Throw and Timed Explode

Type: Weapon Brain
Level: not in gallery
Pages: 1
Description: Found in the TNT Bundle. When thrown the bundle shows a lit fuse and the dynamite then explodes after a timer of 1.75 seconds. It damages everything damageable within its detect zone, while pushing it away from the center of the explosion.

Kode

  1. WHEN [not][equipped][and][not][projectile]
  2. …WHEN [interacted] DO [it][equip][me]
  3. WHEN [is projectile]
  4. …WHEN DO [play fx][fx:Short fuse][at socket][top side]
  5. …WHEN [started to] DO [boolvar:Fuse Lit][equals][true]
  6. WHEN [boolvar:Fuse Lit]
  7. …WHEN [countdown timer][1.75] // length of the fuse
  8. …/…WHEN DO [play sound][Explosion TNT Boom]
  9. …/…WHEN DO [play fx][fx:Fire Explosion][at position][center][volume][0]
  10. …/…WHEN [for each of][detect]
  11. …/…/…WHEN Do [damage][it][10] // amount of damage
  12. …/…/…WHEN DO [push][it][away from][me]
  13. …/…WHEN DO [destroy]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: