card distribution

i am working on card game somebody please tell me how server side help me to distribute cards randomly because what i code in each device the cards randomly distributed but it doesnot distributes similarly asmy first device distributing

Comments

  • Hi @talha,

    for a card game it's best to have the MasterClient shuffle and deal cards to other players. You can achieve this for example by using the RaiseEvent function. How this works, is described on this documentation page.

    Basically you define a specific event code for the card dealing and send a certain card with this call to a certain client. The receiver will call his OnEvent implementation where you can handle the event on the client, for example displaying the card the client got.
  • thanks bro it helped a lot