# PierceProjModifier

This is the component that allows projectiles to penetrate multiple actors, and continue to travel. It is intended to be applied to projectiles.

## Public Variables

| Name                       | Type            | Notes                                                                                                                                                                                                                                                           | Default Value    |
| -------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| penetration                | int             | Controls how many actors the projectile is allowed to pierce through.                                                                                                                                                                                           | 1                |
| penetratesBreakables       | bool            | If set to true, the projectile will pierce through breakable objects.                                                                                                                                                                                           | false            |
| preventPenetrationOfActors | bool            | If set to true, the projectile will not pierce objects with healthHaver components (usually referring to enemies).                                                                                                                                              | false            |
| BeastModeLevel             | BeastModeStatus | If set to BEAST\_MODE\_LEVEL\_ONE, then upon impacting a major breakable object that is not a secret wall and does not have 'ImmuneToBeastMode' set to true, 1000 damage will be dealt to the major breakable.                                                  | NOT\_BEAST\_MODE |
| UsesMaxBossImpacts         | bool            | Upon impacting a boss actor, if this variable is set to true 'm\_bossImpacts' increments by 1. If the amount of stored boss impacts exceeds the maximum defined in 'MaxBossImpacts', then the projectile loses all ability to pierce or, interestingly, bounce. | false            |
| MaxBossImpacts             | int             | Determines the maximum amount of times the projectile is allowed to impact a boss actor if 'UsesMaxBossImpacts' is true.                                                                                                                                        | -1               |

## Private Variables

| Name           | Type | Notes                                                                                                       |
| -------------- | ---- | ----------------------------------------------------------------------------------------------------------- |
| m\_bossImpacts | int  | Stores the amount of times the projectile has impacted a boss actor if 'UsesMaxBossImpacts' is set to true. |


---

# 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://mtgmodders.gitbook.io/etg-modding-guide/monobehaviour-documentation/pierceprojmodifier.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.
