How to change character anywhere in custom match?

I couldn’t find anything searching for forums, nor searching the web. I’m surprised no one has asked this question before. How do I allow myself to change character anywhere anytime in a custom match so that I don’t have to restart the game to swap when im in a training custom game.

1 Like
rule("Rule 1")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Has Spawned(Event Player) == True;
		Is Button Held(Event Player, Button(Interact)) == True;
	}

	actions
	{
		Set Player Allowed Heroes(Event Player, Remove From Array(All Heroes, Hero Of(Event Player)));
	}
}

If you want to spawn as the new Hero where you left of you need to store the Player Position and then teleport them there, same goes for facing direction.

1 Like

Thanks. It’s too bad H doesn’t work. This is a nice workaround. Very cool. Also in selecting a character, you can not cancel, you must change hero.

Can be fixed by adding

actions
{
	Reset Player Hero Availability(Event Player);
}

after the Set Player Allowed Heroes.

Good looks bro. I’ll add that.

TY I was looking for this.

1 Like

where do you put this code I’m very confused and would appreciate if someone told me

Since the Workshop UI ingame is unavailable you’d need to

  1. Copy Settings to Clipboard
  2. Paste clipboard into any external tool like Notepad
  3. Copy ‘this’ section and add it to the script.
  4. Copy the whole script
  5. Go back into the game and select “Paste from Clipboard”
  • For clarification, ingame you’re only required to open the same screen you use to load / delete saved presets.
    The Buttons are found in the top right corner above the input field for game mode name and game mode description.
1 Like