Search Unity

How do I control a Player Model Based on its Level

Discussion in 'Scripting' started by TeKniKo64, Jan 9, 2019.

  1. TeKniKo64

    TeKniKo64

    Joined:
    Oct 7, 2014
    Posts:
    30
    Exactly as the title says, How do I control a Player Model Based on its Level?

    I have a base model for my humanoid character. Once he reaches level 5, 10, 15 and so on, I want his model to change. Can anyone give me some tips on how to do this, or is there a tutorial laying around? I searched Google but I don't think my keywords are correct.

    Thank You,
    Hawkadium
     
  2. Cyber-Dog

    Cyber-Dog

    Joined:
    Sep 12, 2018
    Posts:
    352
    On whatever function changes his level, add a check to see if his level is equal to whatever level he changes at, and call a function like ChangeModel(GameObject model)

    Put the graphic of your player in a child container and then on that call, delete all child objects and instantiate your one.

    That is an easy way but if you need to take into consideration animations etc, then your just gonna have to improve your scripting knowledge and tackle this with experience.