# Play/Standalone game =\>the camera is positionned automatically inside the character . Why?

**URL:** <https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint, UE4-27\
**Created:** [November 18, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946 "2022-11-18T18:44:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilippeC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeC](https://forums.unrealengine.com/u/PhilippeC)\
**Post date:** [November 18, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/1 "2022-11-18T18:44:05Z")

</div>

I have an issue with the “Play/Standalone game” ( few weeks ago it was ok) =\> the camera is positioned automatically inside the character : why ?

I have deleted binaries and intermediate : same result.

When I use “Play/select viewport” or if I package the game : it works.  
“Auto activate” is set to true for the “arm spring” and the “camera”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/9/229b407d199a0ff474286f31ef3dcf01c592137e.jpeg)

Play/“Standalone game” : “autoactivate camera” and “autoactivate arm spring” are false and the camera is inside the character ! Why ???

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/a/17aeedebd60d3120de95f56c7264da10714fe648.jpeg)

Play / “select view port” =\> camera and arm spring are OK and “autoactivate camera” and “autoactivate arm spring” are true.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/6/2163ab916e764ce62b9924374d7a1259b65a219f.jpeg)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [November 19, 2022, 12:54am UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/2 "2022-11-19T00:54:36Z")

</div>

Hey there @PhilippeC! Got a couple questions that may help determine what’s happening here.

Are all the other functions of the character working correctly?

Is the camera/spring colliding against the character? This could make it never leave the inside of the character during play.

---

<div class="post-metadata">

**Author:** ![PhilippeC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeC](https://forums.unrealengine.com/u/PhilippeC)\
**Post date:** [November 19, 2022, 4:23am UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/3 "2022-11-19T04:23:06Z")

</div>

@SupportiveEntity Answer to your questions

_“Are all the other functions of the character working correctly?”_

I have added “PrintString” “GetDisplayName” in all the “BeginPlay” of actors and characters and I confirm that the “PrintString” is not working for all the characters in the level.  
For all the actors the “PrintString” in the “Beginplay” is displaying the “GetDisplayName”

_“Is the camera/spring colliding against the character?”_  
I cannot tell you the “PrintString” is not “working” for characters

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [November 19, 2022, 4:33am UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/4 "2022-11-19T04:33:58Z")

</div>

Their BeginPlay events aren’t firing at all? That’s unexpected. To check your spring arm collisions you can remove the collision test here temporarily:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/5/ea5931159288ee8c9d8664b7f1224b311c5471ff.png)

Does it still fail?

---

<div class="post-metadata">

**Author:** ![PhilippeC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeC](https://forums.unrealengine.com/u/PhilippeC)\
**Post date:** [November 19, 2022, 4:44am UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/5 "2022-11-19T04:44:39Z")

</div>

@SupportiveEntity Yes it fails

I have added a log to play/standalone as explained in this post : [Where are the logs for "Play in Standalone mode" located? - #2 by james0x0A](https://forums.unrealengine.com/t/where-are-the-logs-for-play-in-standalone-mode-located/13554/2)

And there is warning repeated 16 times in the log which is linked to a component that I have created ( the character swims) .

[2022.11.19-04.32.27:494][10]LogScript: Warning: Attempted to access TRASH\_SwimComponent\_C\_21 via property SwimComponent, but TRASH\_SwimComponent\_C\_21 is pending kill  
BP\_mouse\_C /Game/AGame/GameMaps/01-Wizard.01-Wizard:PersistentLevel.BP\_mouse\_2  
Function /Game/AGame/BP\_characters/mouse/BP\_mouse.BP\_mouse\_C:ExecuteUbergraph\_BP\_mouse:005B  
[2022.11.19-04.32.27:495][10]LogScript: Warning: Script call stack:  
Function /Game/AGame/BP\_characters/mouse/BP\_mouse.BP\_mouse\_C:ReceiveTick  
Function /Game/AGame/BP\_characters/mouse/BP\_mouse.BP\_mouse\_C:ExecuteUbergraph\_BP\_mouse

---

<div class="post-metadata">

**Author:** ![PhilippeC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeC](https://forums.unrealengine.com/u/PhilippeC)\
**Post date:** [November 19, 2022, 5:16am UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/6 "2022-11-19T05:16:42Z")

</div>

I have solved the “load errors:warning” below and now it works (the first warning “Attempted to access TRASH\_SwimComponent …” is just a warning ) .

@SupportiveEntity Thanks for your time , you help me a lot with this question : _“Are all the other functions of the character working correctly?”_

The load errors warning : the health bar was corrupted in the BP , i create a new BP\_HealthBar1 and it works now.  
[2022.11.19-05.54.13:424][0]LoadErrors: Warning: CreateExport: Failed to load Outer for resource ‘WidgetTree’: EditorUtilityWidgetBlueprint /Game/AGame/BP\_UI/BP\_HealthBar.BP\_HealthBar  
[2022.11.19-05.06.35:380][0]LogBlueprint: Warning: [AssetLog] D:\Documents\UnrealProjects\_projetEnCours\RouilleFeu\Content\AGame\BP\_characters\BP\_Character.uasset: [Compiler] Could not find a variable named “HealthBar” in ‘BP\_Character’.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [November 19, 2022, 5:19am UTC](https://forums.unrealengine.com/t/play-standalone-game-the-camera-is-positionned-automatically-inside-the-character-why/693946/7 "2022-11-19T05:19:09Z")

</div>

You got it! Sometimes elements don’t seem to be connected can effect the engine itself just like that. With that second error you can just make that variable in the BP (just make sure it’s the right type) and you’re golden! Great work!
