> For the complete documentation index, see [llms.txt](https://docs.gercstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gercstudio.com/other-components/pickup-items.md).

# Pickup Items

Use the <mark style="color:green;">**Pickup Item**</mark> script to pick up ammo/health kits and weapons. This script has 2 pickup methods: <mark style="color:orange;">**"Raycast"**</mark>, <mark style="color:blue;">**"Collider"**</mark> or both.

To create a pickup object, place it into your scene and add the <mark style="color:green;">**Pickup Item**</mark> script.

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FCl6Bq7sUlNstREFAgnBr%2FScreenshot%202021-12-19%20at%2003.13.41.png?alt=media\&token=7924149d-5e24-43e8-8ece-a28423cd7062)

#### Collider mode

When a character enters the area, he picks up an object.

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lf4aWZpqUiSipiEh-D6%2F-M8rAUdHzaXc0wBN1sIT%2F-M8rLtlQQPPPjUQ7GPU6%2Fcollider%20mode.gif?alt=media\&token=0221d8a4-1d3b-4abe-895a-104531eb225a)

#### Raycast mode

When the player is in the area and the crosshair is pointed at an object, click on the <mark style="color:green;">**\[E]**</mark> button to pick it up (you can edit the button in the <mark style="color:green;">**Input Manager**</mark> <mark style="color:orange;">**(Tools -> USK -> Project Settings -> Input)**</mark>.

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lf4aWZpqUiSipiEh-D6%2F-M8rAUdHzaXc0wBN1sIT%2F-M8rLhtSbXDQ2N_jdHjY%2Fraycast%20mode.gif?alt=media\&token=bff572bd-e7d3-4743-b73f-615733589069)

### Ammo

You can create ammunition that is only suitable for a certain type of weapon.

* In the <mark style="color:green;">**Ammo Name**</mark> variable, write the ammunition name
* In the <mark style="color:green;">**Weapon Controller**</mark> script, write the same name

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FvFDBf5NfrouRU3fDiHRI%2Fammo%20name.png?alt=media\&token=0638ad0a-ba2f-4e06-8259-7f8963696890)

If you leave an empty name, the ammo can be used for any weapon.

{% hint style="info" %}
**In-game tip**

If you pick up ammunition, and there is no suitable weapon in the inventory, it will be saved and hidden; And when you get the required weapon, the ammunition will be displayed.
{% endhint %}
