---
tags: Witcher 3
---
# Swords On Roach: No Controller
</br>
*by munchyfly* ( [Nexus](https://www.nexusmods.com/users/5320603) | [Carrd](https://munchyfly.carrd.co/) )
</br>
:::danger
- The mod has been updated to work with both 1.32 and Next Gen though I have yet to start using NG so I can't guarantee it will work on NG.
:::
</br>
---
This is for people, like me, who use a controller and accidentally press the D-Pad when near or mounted on Roach and end up without a sword. This way, you can still use the keyboard numbers to put/take the swords on Roach.
All credits to [Menschfeind](https://www.nexusmods.com/witcher3/users/5630317), the author of both the mod and this little edit.
</br>
Download [Swords On Roach](https://www.nexusmods.com/witcher3/mods/3952)
</br></br>
---
</br>
We are going to be editing the script called `swordsonroach.ws`
You can use Notepad++, VS Code or Sublime Text.
</br></br>
1) Find `function checkNearRoach()`. Should be around Line 36.
2) Change this:
```javascript
if ( VecDistance( GetWitcherPlayer().GetWorldPosition(), GetWitcherPlayer().GetHorseWithInventory().GetWorldPosition() ) <2 )
```
</br>
to this
</br>
```javascript
if ( VecDistance( GetWitcherPlayer().GetWorldPosition(), GetWitcherPlayer().GetHorseWithInventory().GetWorldPosition() ) <2 && !theInput.LastUsedGamepad())
```
</br>
3) Save
4) Load up the game
5) Profit!