# In the level shrapnel every time i want to write code specifically the word throw

**URL:** https://discourse.codecombat.com/t/in-the-level-shrapnel-every-time-i-want-to-write-code-specifically-the-word-throw/31627
**Category:** Bugs
**Created:** [December 20, 2021, 2:02am UTC](https://discourse.codecombat.com/t/in-the-level-shrapnel-every-time-i-want-to-write-code-specifically-the-word-throw/31627 "2021-12-20T02:02:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Julian\_Nicolas\_Mende](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/julian_nicolas_mende/32/27077_2.png) [@Julian\_Nicolas\_Mende](https://discourse.codecombat.com/u/Julian_Nicolas_Mende)
#### Post date: [December 20, 2021, 2:02am UTC](https://discourse.codecombat.com/t/in-the-level-shrapnel-every-time-i-want-to-write-code-specifically-the-word-throw/31627/1 "2021-12-20T02:02:07Z")

</div>

![Captura de pantalla (65)](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/4/6/461338749915e34cb41ee3b028a9fa762ff807e9.jpeg)

---

<div class="post-metadata">

### Author: ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)
#### Post date: [December 20, 2021, 6:59am UTC](https://discourse.codecombat.com/t/in-the-level-shrapnel-every-time-i-want-to-write-code-specifically-the-word-throw/31627/2 "2021-12-20T06:59:22Z")

</div>

Welcome to the forum @Julian_Nicolas_Mende! 🥳 This is a friendly place where you can ask help on levels, report bugs, or just chat with other coders! Don’t forget to read the [guidelines](https://discourse.codecombat.com/t/welcome-to-codecombat-discourse-forums/15601) if you haven’t yet. Have a great time!

So for your level, you need to add an if-statement, checking if the distance is less than 15 as you see in the comments on line 11.

```python
if (the distance from the hero to the enemy is less than 15){
     execute the method throw
}

```

---

<div class="post-metadata">

### Author: ![nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nick/32/784_2.png) [@nick](https://discourse.codecombat.com/u/nick)
#### Post date: [December 20, 2021, 11:38pm UTC](https://discourse.codecombat.com/t/in-the-level-shrapnel-every-time-i-want-to-write-code-specifically-the-word-throw/31627/3 "2021-12-20T23:38:20Z")

</div>

We currently have issues in C++ where the `throw` keyword can’t also be used as a method name and are going to have to come up with some way to rename or alias it.

In the meantime, I’d suggest either doing that level in another language (not C++), or working on levels that don’t require the `throw` method.
