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...

posted to: Ammo Logic
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)
  • Jonathan Gonzalez(jgonzalez) replied
    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.
  • philiplilkaer replied
    where can i post the script to you ?
  • Jonathan Gonzalez(jgonzalez) replied
    You can post on the community: community.cgcookie.com and just put it under "Unity".