hey jonathan i found a script and i modifiyed it so when i press 2 it should switch weapon budt i get this error and it do…

Forum Archive hey jonathan i found a script and i modifiyed it so when i press 2 it should switch weapon budt i get this error and it do…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6092
    philiplilkaer
    Participant

      hey jonathan i found a script and i modifiyed it so when i press 2 it should switch weapon budt i get this error and it dont change can you help me ?

      UnityException: Tag: landser is not defined.
      UnityEngine.GameObject.FindWithTag (System.String tag) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineGameObjectBindings.gen.cs:297)
      weaponinventory.Toak47 () (at Assets/scripts/weaponinventory.js:47)
      weaponinventory.WeaponSwitch () (at Assets/scripts/weaponinventory.js:31)
      weaponinventory.Update () (at Assets/scripts/weaponinventory.js:23)

      #24904
      Jonathan Gonzalez
      Participant

        It’s tough to know what the issue is unless I was able to see the script. I would recommend posting it on the community and I can take a look at it and see what the issue is.

        I did cover weapon switching in this course here: https://cgcookie.com/lesson/weapon-switching/

        It allows you to modify it for specific button inputs to switch weapons.

        #24905
        philiplilkaer
        Participant

          where can i post the script to you ?

          #24906
          Jonathan Gonzalez
          Participant

            You can post on the community: community.cgcookie.com and just put it under “Unity”.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘hey jonathan i found a script and i modifiyed it so when i press 2 it should switch weapon budt i get this error and it do…’ is closed to new replies.