Having an issue attaching the camera to the player. Previously I would have attached it to a parent socket on the head but that option isn’t available for some reason any ideas or solutions? It’s to be first person multiplayer and so the head is required.
It looks like your camera is attached to the capsule component instead of the mesh, drag it onto the mesh to attach it there instead, after that you will have the option of selecting the parent bone/socket.
Okay so I’ve changed it so it’s like this
Problem is that I can turn the camera to face the face
You’ll need to adjust the transform of the Camera so that it is offset better from the mesh, i.e positioned more inside the head. As it is now, it is a bit far in front.
If you don’t want the player to see the model at all, you can set OwnerNoSee to true in the mesh settings
you probably want to make your character turn with the camera too.
This video may help:Unreal Engine 4 C++ Tutorial Version 4.0.2: True FPS with "zoom-able" third person - YouTube
I do not know if you’re using BP or C++, but from this you can do the same with BP.
Alex.-
Yeah Alex that’s what I’m looking for but I can’t understand how to do it from that video. I remember someone taught me a while back and it was quite a simple fix.
this does the trick
bUseControllerRotationPitch = false;
bUseControllerRotationYaw = true;
bUseControllerRotationRoll = true;
From BP you also have access to these varibales (just copy and paste what is below in your “YourCharacterBP” Event Graph or search for the getters and setters right there)
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_206"
Begin Object Class=EdGraphPin Name="EdGraphPin_3611"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3612"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3613"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3614"
End Object
Begin Object Name="EdGraphPin_3611"
PinName="execute"
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_3612"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_3613"
PinName="bUseControllerRotationYaw"
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_3614"
PinName="self"
PinType=(PinCategory="object",PinSubCategory="self")
bHidden=True
End Object
VariableReference=(MemberName="bUseControllerRotationYaw",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_3611'
Pins(1)=EdGraphPin'EdGraphPin_3612'
Pins(2)=EdGraphPin'EdGraphPin_3613'
Pins(3)=EdGraphPin'EdGraphPin_3614'
NodePosX=176
NodePosY=528
NodeGuid=AE656B96471531F0C14B0898ADE20EB3
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_242"
Begin Object Class=EdGraphPin Name="EdGraphPin_3615"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3616"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3617"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3618"
End Object
Begin Object Name="EdGraphPin_3615"
PinName="execute"
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_3616"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_3617"
PinName="bUseControllerRotationRoll"
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_3618"
PinName="self"
PinType=(PinCategory="object",PinSubCategory="self")
bHidden=True
End Object
VariableReference=(MemberName="bUseControllerRotationRoll",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_3615'
Pins(1)=EdGraphPin'EdGraphPin_3616'
Pins(2)=EdGraphPin'EdGraphPin_3617'
Pins(3)=EdGraphPin'EdGraphPin_3618'
NodePosX=176
NodePosY=624
NodeGuid=43302BB14161E5768566C3A629CF7274
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_278"
Begin Object Class=EdGraphPin Name="EdGraphPin_3619"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3620"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3621"
End Object
Begin Object Class=EdGraphPin Name="EdGraphPin_3622"
End Object
Begin Object Name="EdGraphPin_3619"
PinName="execute"
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_3620"
PinName="then"
Direction=EGPD_Output
PinType=(PinCategory="exec")
End Object
Begin Object Name="EdGraphPin_3621"
PinName="bUseControllerRotationYaw"
PinType=(PinCategory="bool")
DefaultValue="false"
AutogeneratedDefaultValue="false"
End Object
Begin Object Name="EdGraphPin_3622"
PinName="self"
PinType=(PinCategory="object",PinSubCategory="self")
bHidden=True
End Object
VariableReference=(MemberName="bUseControllerRotationYaw",bSelfContext=True)
Pins(0)=EdGraphPin'EdGraphPin_3619'
Pins(1)=EdGraphPin'EdGraphPin_3620'
Pins(2)=EdGraphPin'EdGraphPin_3621'
Pins(3)=EdGraphPin'EdGraphPin_3622'
NodePosX=176
NodePosY=720
NodeGuid=22CB7C5644B3CDF3590E90A618924DBE
End Object
Sorry for my English, its late here
Alex.-