SlashCo Wiki

TylerSwitchForm

  TylerSwitchForm( Player slasher, number newForm )

Description

Switches the slasher Tyler into a new form (Specter, Creator, Pre-Destroyer or Destroyer), resetting his per-form state and timers.
Stops the destroyer sounds and effects when leaving the Destroyer form, and starts the appropriate hiding/background music when entering Creator or Specter.
If switching into Creator while his anger is above 50, there's a random chance he switches into Pre-Destroyer instead.

This is used internally - although you're able to use it you probably shouldn't.

It is only exposed for debugging purposes!

Arguments

1Player slasher

The player currently playing as Tyler

2number newForm

The form to switch to: 0 (Specter), 1 (Creator), 2 (Pre-Destroyer) or 3 (Destroyer)