Search Unity

Making the Color of our team members Blue so we can recognize them (Multiplayer)

Discussion in 'Scripting' started by Loaiq1107, Feb 12, 2016.

  1. Loaiq1107

    Loaiq1107

    Joined:
    Aug 25, 2014
    Posts:
    48
    I'm making a multiplayer fps game , and want to make a recognition system , so if you're in team 1 , all of your team members will be blue (only you see them blue , the other team see's them they're default material/color).

    how can i do that (c#) ?
    Thanks a lot :)
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    What multiplayer framework are you using? Unet? Proton? Etc.
     
  3. Loaiq1107

    Loaiq1107

    Joined:
    Aug 25, 2014
    Posts:
    48
    Photon
     
  4. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    You would have to use shaders to allow customizable material colors. These customizable material colors will allow you to script the colors based on team factions. Kind of like this one that I'm going for in my multiplayer game:



    Start from there, and then let the clients decide on what to do with the color flags you set for your shaders, and the rest will be easy.