holding weapons

how would i set up weapons so i could assign them a position to take when active so they would always be in the right spot?

I would create a mount point ( empty game object) parented to your characters hand or wherever, and a point in your weapons grip the same way. Set the weapon’s position / rotation to the mount point in the hand, then parent the weapon to that point so it moves when the character does.

yeah, i tried that once, but it didnt work, the mount point for the weapon reset to the weapons position for some reason

I have my all of my weapons parented to the character right hand bone and positioned/rotated properly, then deactivate them all in Start() and manage their activation/deactivation with a weapon management script.

well, the problem is you dont always have the weapon, and id like to not do it that way, doesnt seem like a good practice.

Oh yeah, forgot that moving child objects doesn’t move the parent… anyway… maybe place the weapon manually where you would want it on your character. Check the weapons location, create the mount point and set it there. Parent the mount to the hand and then just set the weapon position to that mount point and parent the weapon when you need / want to

hmm, i got an idea, actually.

So when you don’t have it, you deactivate the GameObject… instantiating and destroying gameobjects whenever the player changed weapons would certainly be worse practice; unneccessary garbage for the collector. Better just to keep them in memory. Its how UT shows you to do it in the official FPS tutorial.

yeah, but id prefer not to do that, we have too many weapons and this is for iOS, dont want to work the processor too much