# Cover system via C++

**URL:** <https://forums.unrealengine.com/t/cover-system-via-c/48925>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [December 1, 2015, 6:08pm UTC](https://forums.unrealengine.com/t/cover-system-via-c/48925 "2015-12-01T18:08:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagini](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nagini](https://forums.unrealengine.com/u/Nagini)\
**Post date:** [December 1, 2015, 6:08pm UTC](https://forums.unrealengine.com/t/cover-system-via-c/48925/1 "2015-12-01T18:08:03Z")

</div>

Hello.  
I wonder how can I create cover system via C++ code? I looked through internet for some example games, using cover system created in c++, but I didn’t found. Which class expansion shall I use to do so? How animation works in C++? I don’t even know how to begin creating cover system. I need ur help guys! Thanks! 😃

---

<div class="post-metadata">

**Author:** ![Juice-Tin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juice-tin/32/1008648_2.png) [@Juice-Tin](https://forums.unrealengine.com/u/Juice-Tin)\
**Post date:** [December 2, 2015, 6:07am UTC](https://forums.unrealengine.com/t/cover-system-via-c/48925/2 "2015-12-02T06:07:35Z")

</div>

It’s a long process but if you’re willing to learn…

Controlling animations through c++:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Use trace (raycasts) to see where the walls are, so your character knows if there is cover in front of him or not:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
