- Home /
Question by
mdaniels5757 · Jun 04, 2013 at 03:51 PM ·
inventoryout of range
Inventory Script not working
I am using bearmacstudio's inventory script and it keeps deleting the main camera.
If you need more info, just reply.
Thanks,
Michael
Comment
your main camera doesn't happen to be tagged with "Weapon" does it?
because this line would destroy it
Destroy(GameObject.FindGameObjectWithTag("Weapon"));//destroy our instantiated prefab
Your answer
![](https://koobas.hobune.stream/wayback/20220613103517im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Very simple inventory script... 0 Answers
Make the first person controller transparent? 1 Answer
My health decreases to fast. 1 Answer
Helpppp - AnimationState.layer ?????? -1 Answers