So I am working on a medieval style RPG where you can “recruit” enemy soldiers as well as NPCs from towns.
I have working items and everything so far, but I am stumped on how to get this to work, I simply need to be able to hit a key to add them to an “inventory”. Elaborating on the details later, just something super simple as of now.
this sounds more like a design problem than a scripting problem. input > raycast > comparetag > add to list > move enemy offscreen/disable enemy gameobject > re-enable when necessary.
Actually, that helps a ton. I have a bit of a problem visualizing how to do it, so that is a huge help.