SlashCo Wiki

SlashCo.SpawnPlayerAsSlasher

  SlashCo.SpawnPlayerAsSlasher( Player ply, string slasherName )

Description

Used for debugging: forces a player to become and spawn as the given slasher immediately.
If the round hasn't started spawning slashers yet, the player is instead just marked to spawn as that slasher via SlashCo.SelectSlasher.
The slasher name is matched case-insensitively against both the registered name and the slasher's Name field.

Arguments

1Player ply

The player to turn into a slasher

2string slasherName

The name of the slasher to spawn as