Teleporter

Type: Assembly Brain
Level:not in gallery
Pages: 1
Description: Found in the Teleporter 2 Way Assembly. When the player interacts with the pad they are teleported to another pad and vice versa.

Kode

Teleporter A

  1. WHEN [interacted] DO [it][position][equals][iwp:Teleporter B][position]
  2. …WHEN DO [play fx][fx:Teleport Diamond]
  3. …WHEN DO [play fx][Teleport Diamond][on][iwp:Teleporter B]
  4. WHEN [detect][player] DO [power on]
  5. WHEN [no longer][detect][player] DO [power off]

Teleporter B is same except it iwp: Teleporter A

 

Alterations

Create a small delay so that the player vanishes from the pad, then the camera pans and he appears on the other one.

  1. WHEN [interacted] DO [boolvar:transport][equals][true]
  2. …WHEN DO [objvar:traveller][equals][it]
  3. WHEN [boolvar:transport]
  4. …WHEN DO [play fx][fx:Teleport Diamond][on][objvar:traveller]
  5. …WHEN [countdown timer][0.3] DO [objvar:traveller][visible][equals][false]
  6. …WHEN [countdown timer] DO [objvar:traveller][position][equals][iwp:Teleporter B][position]
  7. …/…WHEN DO [play fx][Teleport Diamond][on][iwp:Teleporter B]
  8. …/…WHEN [countdown timer][0.3] DO [objvar:traveller][visible][equals][true]
  9. …/…./….WHEN DO  [boolvar:transport][equals][false]
  10. WHEN [detect][player] DO [power on]
  11. WHEN [no longer][detect][player] DO [power off]

You can use this code to add any effect you like for the transporter. Maybe the player flashes or shrinks rather than just goes invisible.

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: