Ninjutsu Games
Asset StoreYoutubeTwitterInstagramSupport
  • 🖐️Welcome!
  • Game Creator 2
    • ☢️Fusion Module
      • Setup
      • Sessions
      • Characters
      • Variables
      • Remote Procedure Calls
      • Settings
      • User Interface
      • References
        • Shutdown Reasons
      • Guides
        • How to test my game
        • How to toggle Debug mode
        • How to Update Fusion SDK
      • Releases
      • 🤝Fusion Factions
        • Releases
      • 💫Fusion Stats
        • Releases
      • 📦Fusion Inventory
        • Releases
      • 🧙Fusion Abilities
        • Releases
      • ⚔️Fusion Melee
        • Releases
      • 🔫Fusion Shooter
        • Releases
    • 🤝Factions
      • Setup
      • Faction Asset
        • Settings Editor
      • Member
        • Memory
      • Visual Scripting
        • Conditions
        • Events
        • Instructions
        • Properties
      • User Interface
      • Releases
      • 🌐Photon Factions
    • 🎮Coop
    • 👑Loot Locker
      • Getting Started
      • Authentication
        • Guest
        • White Label
        • Google
        • Steam
        • Apple Sign In
      • Sessions
      • Save Load
      • Players
        • Player Storage
        • Names
      • Leaderboards
        • Visual Scripting
      • Messages
      • Progressions
      • Replenish System
      • Date Time
        • Server Time
      • Handling Errors
      • Releases
    • 🤖State Machine 2
      • Graph Editor
      • State Machine Runner
      • Nodes
        • Node Features
      • Variables
      • Shortcuts
      • Releases
    • 🌐Photon Module 2
      • Overview
      • Releases
      • 🔫Photon Shooter
        • Getting Started
        • Releases
      • 💫Photon Stats
        • Releases
      • 📦Photon Inventory
        • Overview
        • Releases
      • 🧙Photon Abilities
        • Releases
      • ⚔️Photon Melee 2
        • Troubleshooting
        • Releases
  • Game Creator 1
    • Photon Network
      • Overview
      • Characters
      • Network Items
      • Actions
      • Conditions
      • Triggers
      • Guides
        • How to Connect and Instantiate your Player
        • Instantiation Options
        • How to Sync Attachments
        • How to display room or other network information
        • How to setup Camera Motor
        • How to test my game
      • Sub-Modules
        • 🏃Photon Traversal
        • ⚔️Photon Melee
        • 🔫Photon Shooter
          • Changelog
      • Changelog
    • State Machine
      • Editor Graph
        • Nodes
        • Blackboard
        • Copy & Paste
        • Targets
      • Export State Machines
      • Changelog
    • RPG (Deprecated)
      • Actor
        • Actions
        • Conditions
        • Triggers
      • Attributes
        • Actions
        • Conditions
      • Classes
        • Actions
        • Conditions
      • Skills
        • Actions
        • Conditions
      • Formulas
      • Changelog
    • AI & Factions (Deprecated)
      • Changelog
Powered by GitBook
On this page
  • On Connection Events
  • On Connection State
  • On Photon Matchmaking
  • On Room Events

Was this helpful?

  1. Game Creator 1
  2. Photon Network

Triggers

This is just a test

PreviousConditionsNextGuides

Last updated 8 months ago

Was this helpful?

The Photon module comes with a set of Igniters or Triggers that are called when when photon events happens like On Connected, On Joined Room etc.

On Connection Events

This event handle pretty much all Photon Events. Some of them like:

  • OnConnected: Called to signal that the "low level connection" got established but before the client can call operation on the server.

  • OnConnectedToMaster: Called when the client is connected to the Master Server and ready for matchmaking and other tasks.

  • OnDisconnected: Called after disconnecting from the Photon server. It could be a failure or an explicit disconnect call

On Connection State

This event it's called when the Photon Network connection state changes and also store the current state in a local or global variable.

On Photon Matchmaking

This trigger contains all Photon Matchmaking related events

  • OnLeftRoom: Called when the local user/client left a room.

  • OnCreatedRoom: Called when this client created a room and entered it. OnJoinedRoom will be called as well.

  • OnJoinedRoom: Called when entering a room (by creating or joining it). Called on all clients (including the Master Client).

  • OnCreateRoomFailed: Called when the server couldn't create a room (OpCreateRoom failed).

  • OnJoinRoomFailed: Called when a previous OpJoinRoom call failed on the server.

  • OnJoinRandomFailed: Called when a previous OpJoinRandom call failed on the server.

  • OnFriendListUpdate: Called when the server sent the response to a FindFriends request.

On Room Events

This trigger contains all Photon Room related events:

  • OnPlayerEnteredRoom: Called when a remote player entered the room. This Player is already added to the playerlist.

  • OnPlayerLeftRoom: Called when a remote player left the room or became inactive. Check otherPlayer.IsInactive.

  • OnMasterClientSwitched: Called after switching to a new MasterClient when the current one leaves.