Weapon Rack Random Spawn

Type: Assembly Brain
Level: not in gallery
Pages: 1
Description: A weapons rack that when the payer interacts with it produces a single randomized weapon.

Kode

  1. WHEN [interacted] DO [#weapon][equals][random number][as integer][1][to][4]
  2. …WHEN  DO [vectorvar:spawn weapon][equals][position][plus][(][forward][multiplied by][2][)][plus][world up]
  3. …WHEN [#weapon][equals][1] DO [create][prop:Archers bow][at position][vectorvar:spawn weapon]
  4. …WHEN [#weapon][equals][2] DO [create][prop:Knights Warrior Axe][at position][vectorvar:spawn weapon]
  5. …WHEN [#weapon][equals][3] DO [create][prop:Knights Warrior Shield][at position][vectorvar:spawn weapon]
  6. …WHEN [#weapon][equals][4] DO [create][prop:Knights Warrior Sword][at position][vectorvar:spawn weapon]
  7. …WHEN DO [play fx][Poof][at position][vectorvar:spawn weapon]
  8. …WHEN [for each of][attachments] DO [destroy][it]
  9. …WHEN DO [deactivate brain][me]

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: