Game Maker

Player Respawn

Triggers after a player dies and respawns in the map.

This global event fires immediately after a player has respawned following a death within the map. It's the perfect trigger for logic that needs to run to get a player back into the action.

Note: This is a global event and is not tied to a specific region. You can configure it in the "global" region's event menu.

Action Values

  • Player: The player who respawned.

Event Configuration

This event has no special configuration.

Use Cases

  • Giving players a brief period of invincibility after respawning.
  • Teleporting the player to their team's specific spawn point instead of the map's default spawn.
  • Re-applying a "starter kit" inventory layout.
  • Resetting player-specific properties like isHoldingFlag to false.

Example: Respawn Invincibility and Team Spawn

  1. Region: Select the "global" region.
  2. Event: Add a Player Respawn event.
  3. Actions:
    • Potion Effect: Target the Player, apply RESISTANCE with an amplifier of 5 (making them nearly invincible) for 60 ticks (3 seconds).
    • A Conditional action to check the player's team and teleport them accordingly.
      • Condition: Is on Team -> "Red Team"
      • If Actions: Teleport Player to the Red Team's spawn location.
      • (Repeat conditional for Blue Team, etc.)