# Photon Melee

## Overview

There are three main components in the **Photon Melee** sub-module.

* **Melee Registry:** A configuration object which contains all **Weapons,** **Shields** and **Clips** that are required for your game to run.
* **Character** **Melee Network:** A component required to syncronize all melee actions.

{% hint style="success" %}
This sub-module requires the [**Melee**](https://assetstore.unity.com/packages/tools/game-toolkits/melee-game-creator-1-164145) and [**Photon Network**](https://assetstore.unity.com/packages/tools/network/photon-module-for-game-creator-123155) module
{% endhint %}

{% hint style="info" %}
Download the [**Photon Melee**](https://u3d.as/2sC4) module
{% endhint %}

## Setup

Setting up the **Photon Melee** sub module is a fairly straight forward process after you learn how to use the **Photon module** and **Melee** module.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-51d5e8fb09d2fbe9d8a6814901f4886b646582ac%2FSetup.png?alt=media)

### Step 1

The first thing you need is to setup a **Melee Registry** component and add all the weapons, shields and clips as needed.

![This component needs to be present on the scene before joining a room.](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-cd5f7d5c91b8251ab8939f1f7cd545df5780fef8%2FScreen%20Shot%202021-12-19%20at%201.50.51%20AM.png?alt=media)

### Step 2

Once this is done the final step is to turn on the "**Sync Shooter"** option in your **Player Character Shooter** or **Character Shooter** components.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-77fa028a1c2f4218b335f5ec6f1d3b0f11a20148%2FScreen%20Shot%202021-12-19%20at%201.53.43%20AM.png?alt=media)

{% hint style="info" %}
Please keep in mind this module is in **BETA**, if you see any bugs just report it to [**support@ninjutsugames.com**](mailto:support@ninjutsugames.com) or at the [**Discord Server**](https://discordapp.com/invite/u2K64A7)
{% endhint %}
