Can someone help me write a script for something i’m trying to work on? I want to make a script that I can attach to a spawn point on my character, that pretty much equips/unequips a torch. I was thinking about how I would do this and I can up with this.
Something to the effect of if the player pushes “F” then it will pull the prefab torch, and if they push it again it will destroy the prefab. Can anyone help with this please?
In the FPS demo tutorial there is a good script that shows how to swap weapons. One of the basic idea’s for somthing like this is to make an array, and then render the item you want to see when f is pressed using input. Then render and un render the other objects when needed. ![]()