# Attaching a Collision Component to the Character in C++

**URL:** <https://forums.unrealengine.com/t/attaching-a-collision-component-to-the-character-in-c/375804>\
**Category:** World Creation\
**Tags:** teleport, attachment, unreal-engine, Collision, question\
**Created:** [November 9, 2016, 12:06am UTC](https://forums.unrealengine.com/t/attaching-a-collision-component-to-the-character-in-c/375804 "2016-11-09T00:06:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a96ccaee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a96ccaee1](https://forums.unrealengine.com/u/anonymous_user_a96ccaee1)\
**Post date:** [November 9, 2016, 12:06am UTC](https://forums.unrealengine.com/t/attaching-a-collision-component-to-the-character-in-c/375804/1 "2016-11-09T00:06:29Z")

</div>

I’m trying to create a teleport action for my character by teleporting the character to an attached sphere collision component, whose relative location is set in front of the character (this part is done in C++). This is because I want to eventually be able to use this sphere collision component to be able to disable the the teleport action if the collision overlaps with a wall. Then, in Blueprints, I’m trying to use the teleport function with the destination of the character as the collision component. The teleport will be triggered by pressing T (done in Blueprints). I’ve tried so many things to make the attachment and teleport work but it is simply not. Any help?
