Basic Grenade

Type: Weapon Brain
Level: not in gallery
Pages: 1
Description: Found in the Stick Grenade prop. When the object is thrown or shot it will explode on contact with props, characters or terrain, damaging any enemies of the thrower within a 3.5 metre radius.

Kode

  1. WHEN [once] DO [objvar:Wielder][equals][creator]
  2. WHEN [not][equipped][and][not][is projectile]
  3. …WHEN [interacted]
  4. …/…WHEN DO [objvar:Wielder][equals][it]
  5. …/…WHEN DO [objvar:Wielder][objvar:equipped projectile][equals][me]
  6. …/…WHEN DO [objvar:Wielder][equip][me]
  7. WHEN [is projectile]
  8. …WHEN DO [play fx][fx:Smoke trail][at position][me][scale fx][scale]
  9. …WHEN DO [play sound][sound:Air Compressed Blast Flutter][at][me]
  10. …WHEN DO [pitch][55][object relative][invert]
  11. …WHEN [countdown timer][0.2]
  12. …/…WHEN [bump][or][bump terrain][or][countdown timer][3]
  13. …/…/…WHEN DO [play sound][sound:Explosion Fire Small]
  14. …/…/…WHEN DO [play fx][fx:Fire Explosion][at position][position][scale fx][1.2]
  15. …/…/…WHEN DO [play fx][fx:Dust Ring][at position][position][scale fx][0.8]
  16. …/…/…WHEN [objvar:Wielder][enemies][objects closer than][3.5] DO [damage][35][them]
  17. …/…/…WHEN [destroy]

 

Comments are closed.

Website Powered by WordPress.com.

Up ↑

<span>%d</span> bloggers like this: