> 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

I will add specific tips, tricks, and FAQ answers here. If you have a question, or want to know how something can be done using Game Modules, ask on the Discord!

## 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="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FTJEyB6Z1TrRpjkOcJAUX%2FScreenshot%202023-06-07%20at%206.37.25%20PM.png?alt=media&amp;token=db2bb3b3-9c47-4a87-b5e8-49cfac29d3e8" 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.
