> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/important-information/faq.md).

# FAQ / Tips & Tricks

## Have a question? [Ask on Discord](https://discord.com/invite/cmZY2tH).

## I want to fire a projectile...any tips?

Yes! Projectiles live in the world apart from the thing that fired them, which may die or be destroyed, or be modified, before the projectile hits. You can transfer stats to a projectile so that the projectile itself knows what kind of damage to do.

Check out the `FireProjectile()` method in the `MagicPedestal.cs` class from the [RPG Demo Game](/magic-pig-games/game-modules-4/game-module-demo-projects.md).

After instantiating the projectile, the `TransferStats()` method is called on the projectile which `Clones` the stats, and sets the list up. **It is important to clone the stats!**

The magic ball object will cause damage when it collides, utilizing the stats.&#x20;

*Note: In this demo, we use a Condition to pass damage. That is not the only way to compute damage, so you'll want to decide how to pass damage in a way that works best for your project.*

## I'm getting weird `nullReferenceException` and other errors.

Make sure you have the various `Repository` prefabs in your scene. These are required for automatic operation of the various modules.

<figure><img src="/files/X9lx8cJ1lLd8vV0X7CIZ" alt="" width="233"><figcaption></figcaption></figure>

## Stat values don't update properly!

Check your min/max values. Keep in mind the "Proficiency" is meant to go below 0 at times, as well. If your minimum or maximum values are clamped, your final Value, Proficiency, Points, or Stat will never go beyond that range.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/important-information/faq.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
