# Projectile Weapons

To create a projectile weapon:

1. Create a new game object and call it 'Projectile Weapon'
2. Add a **Gun Weapon** component
3. Add a **Projectile Weapon Unit** component
4. Drag a projectile prefab into the *Projectile Prefab* field in the inspector of the **Projectile Weapon Unit** component.

The gun is now ready to use and will fire projectiles when triggered, and can be loaded onto a vehicle as a module.&#x20;

Check out the projectile weapon prefabs to see examples of setting up visual and audio effects.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vsxgames.gitbook.io/universal-vehicle-combat/weapons/projectile-weapons.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
