Equip Me & Power On

Type: Prop Brain
Level: not in gallery
Pages: 1
Description: Found in the Astro Pickaxe,Magicians Torch, Woodmans Torch. When you interact with the object it is equipped and the power is turned on. When dropped/unequipped the axe power is automatically turned off.

Kode

Astro Pickaxe

  1. WHEN [not equipped][and not][attached]
  2. …WHEN [interacted] DO [it][equip][me]
  3. …WHEN [started to] DO [power off] // when the object is not equipped (before it is picked up and after it is dropped) its power is off
  4. …/…WHEN DO [[play sound][sound: Mechanical Astro Pickaxe Power Off]
  5. …WHEN [else]
  6. …/…WHEN [started to] DO [power on]
  7. …/…/…WHEN DO [play sound][sound:Mechanical Astro PickAxe Power On]

Magician’s Torch and Woodman’s Torch

  1. WHEN [not][equipped]
  2. …WHEN DO [power off]
  3. …WHEN [detect][player]
  4. …/…WHEN [interacted] DO [it][equip][me]
  5. WHEN [equipped] DO [power on]

Alterations

Astro Pickaxe

Lines 4 and 7 are completely unnecessary as the prop should contain instructions in brain properties/sound to play these sound effects. However the power off sound effect is missing in brain properties. Add it there and you can remove lines 4 and 7.

Magicians Torch

Line 3 is pretty superfluous as interactable objects only activate when detected by the player from the kode in the players brain.

 

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: