Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ramandesingh88 · Apr 01, 2014 at 08:05 PM · playerphotonmultiplayer-networkingmmo

Photon server how to control player traffic in a client network

i am working in photon mutiplayer ,were when players connected to each network, i cant able to control thee photon player traffic so i need to switch player to limited numbers or i want to enable and disable player ,please any one worked in multiplayer traffic in photon server plz help me

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Apr 01, 2014 at 10:22 PM 2
Share
 // PhotonNetwork.CreateRoom( room name : string, is visible : boolean, is open : boolean, maximum number of players : int );
 PhotonNetwork.CreateRoom( roomName, true, true, maxNumPlayers );
avatar image hkessock · Apr 01, 2014 at 10:48 PM 0
Share

Could you try to word that again? $$anonymous$$aybe use Google Translate. :)

If you mean to ask "how can I managed the number of players attached to a room" you can simply specify the max players per room and let the photon load balancer create/join rooms for you.

avatar image ramandesingh88 · Apr 02, 2014 at 04:47 AM 0
Share

sorry for bad English ,yes i mean to ask this question ,but i don't want to limit my players when joining a room.I want to control my players in every client network and make then enable or disable.

avatar image hkessock · Apr 02, 2014 at 01:25 PM 0
Share

What do you mean by "enable or disable"? Do you want to be disconnect them or simply control them? If you want to disable their ability to pass/receive messages from the network just tell them to be silent or ignore any message other than a 'wake up' message.

I simply pass short X$$anonymous$$L messages to my clients to tell them how to behave.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by hkessock · Apr 01, 2014 at 11:54 PM

If you're using the cloud based sdk, simply specify the max number of players when creating a new room and the load balancer will connect clients to a new room when they overflow...

If you want to control the behavior of individual clients in a room, send them messages that control their behavior.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ramandesingh88 · Apr 04, 2014 at 07:37 AM

ya i found, to on and off photon player visibility in ur screen u identify photon playerlistt and make there gameobject setactive(true/false)...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Third Person Multi-player Swapping Controls 0 Answers

Player sets up server UNet. 0 Answers

Send information from one player to another. Unity Multiplayer 2 Answers

Player don't spawn in build only, no log 0 Answers

UNet bugs all over the place, fixed after re-building the Player prefab. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges