Hey I know this is my first Post but I am not new to this forum and I have known unity for 1 year but i cannot get this script off my mind and I need it badly if I want to Complete my game what I need is A script that when i collide with a certain object or prefab another certain prefab or object gets changed aswell. Example a gun is on the floor and I go and touch it and It switches my Prefab to another Prefab to that I am holding a gun…so there are three variables one with the gun another with my player and another with what it turns into does anyone understand? thanks.
~Steve
Hi, welcome to the forum!
Unfortunately, I’m afraid I don’t understand. Can you go into a bit more detail?
Yeah, there’s another way to do this, easier:
You touch the gun. Okay, there’s a collider on the gun that does this when you touch it:
It moves to your hand, where your hand is. Then it makes itself a child of your hand, so it stays stuck to your hand, moves as your hand moves. And there it is.
Then you’ll have all sorts of other things you “must” do like aim it, shoot bullets, etc. But for this one thing I think you can do it.
One step at a time…
thanks guys and i fixed the problem but now i have another ill make a new topic
P.S. sorry it took so long to reply
~Steve