Use the PickUp script to pick up ammo/health kits and weapons. This script has 2 types of pickups: "Raycast" and "Collider".
When the character enters an area, he picks up an object.
When the player is in the area and the crosshair is pointed at the object, click on the button to pick it up.
To pickup an object, press the [Pickup] button, you can edit it in [Edit -> Project Settings -> USK Input ].