#I Am A Moron Please Help
1 messages · Page 1 of 1 (latest)
DETAILS:
I am using a system like this:
Where the currently selected weapon slot is active while the others are not
and the guns are parented to the slot
How are the guns different? Do they have IDs? Different scripts?
they are different prefabs
Do that then. Use an ID, or different script, whatever
Then when you pick up a gun, check that identifier to know which gun to make active
how would I do that?
i can make an array with different numbers
but i want to randomize the guns later on
so that would not work
If you can change the gun that is in each slot, you should attach the identifier to the gun itself
Like i said, an id. Like.. gunType or something
I guess?
ill try that
Basically to start with, just create a way to identify between your guns
@odd dragon
Uh... why
Read the thread title
Okay nvm then. Maybe look up a tutorial
i did that for 3 hours
nothing
✅ Get the Project files and Utilities at https://unitycodemonkey.com/video.php?v=isAmoM3RPEI
Let's make a UI Window so we can Drag Weapons and Items into various Slots to Equip them!
Character Portrait Window
https://www.youtube.com/watch?v=_DjR2O8EKPA
Simple Inventory
https://www.youtube.com/watch?v=2WnAOV7nHW0
Simple Drag Drop
https://www.y...
this looks good