# How to verify that PIE is in Player Detach (F8) status within the c++ code?

**URL:** <https://forums.unrealengine.com/t/how-to-verify-that-pie-is-in-player-detach-f8-status-within-the-c-code/2267193>\
**Category:** C++\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, CPP, question\
**Created:** [January 9, 2025, 3:16am UTC](https://forums.unrealengine.com/t/how-to-verify-that-pie-is-in-player-detach-f8-status-within-the-c-code/2267193 "2025-01-09T03:16:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_ab517090ed9c22743770830d9014a4fba8515dc3a7e7bc62ad9e1a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_ab517090ed9c22743770830d9014a4fba8515dc3a7e7bc62ad9e1a](https://forums.unrealengine.com/u/user_ab517090ed9c22743770830d9014a4fba8515dc3a7e7bc62ad9e1a)\
**Post date:** [January 9, 2025, 3:16am UTC](https://forums.unrealengine.com/t/how-to-verify-that-pie-is-in-player-detach-f8-status-within-the-c-code/2267193/1 "2025-01-09T03:16:52Z")

</div>

How to verify that PIE is in Player Detach (F8) status within the c++ code?

I want to create a function to move the camera in player detech state, but I don’t know how to check that state within the code c++.
