- Home /
Dynamic Pickup Objects Script
Hello,
My scenario is that i have a shooting game and i want to pickup weapons and switching weapons as well. i have done it to attach each fixed weapon (scaled and positioned correctly) as a child to the camera inside the FPS controller (Capsule) and set all active to false except the primary weapon. This approach is working just fine.
What i wonder now if there is a way to accomplish this as a dynamic weapons pickup without adding the objects inside the FPS controller fixed ? And How ? Script ? @Ellie97 Many Thanks,
Look into instantiating and deleting. Have your weapons as prefabs. I can't be more help because I'm at work.
Your answer
![](https://koobas.hobune.stream/wayback/20220612181340im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Camera Rotation isn't synchronized with FPS Controller Rotation. 1 Answer
How to set new rotation for FPS prefab, if it turns back? 0 Answers
Teleport problem 2 Answers
Change the gravity in the First Person Controller script attached to the player prefab object? 0 Answers
Approach for forcing player movement 0 Answers