I have a problem.
I Possess my Controller from PlayerCharacter to a Vehicle Pawn and Attach the 3Person Mesh from the Player to a Place in the Vehicle, this works fine.
Now i want to Possess it back to Player Character (works fine) and Detach the 3Person Mesh from the Vehicle to be back on the PlayerCharacter, but by using Detach from Parent the Mesh only jumps to 0, 0, 0 (WorldPosition) and not Snap back to PlayerCharacter Pawn.
I donât see you attaching the mesh back to the player character after you detach it from the car. AFAIK this is not done automatically can you try using an attach node to attach âMesh 3Pâ back to âPlayerâ? The attach node should also give you an option to âSnap to targetâ/âmaintain offsetâ, etc.
Yeah VSZ, i think that i need to attach it back but where should i attach it ? on Character there is no Mesh(Socket) to attach it on. Thats my problem and i dont know how to solfe this.
The only thing i think will work is to add a âDummyâ Mesh and Attach the 3P Mesh to it.
Iâm assuming your character setup is âstandardâ, i.e. a subclass of âcharacterâ with a capsule component as the root and the skeletal mesh component as its child, right? If so, attach the skeletal mesh back to the capsule component of your character like this:
Right click, turn context-sensitive off in your BP and select the âAttach Toâ node under Transformation. Plug your skeletal mesh component into the target node and for the âIn Parentâ use the root component of your character.
I donât know if this will help but one trick that Iâve seen recently is to place an âArrow componentâ in the vehicle blueprint called âDriver Exit Locationâ. Then when itâs time to leave the vehicle you just use that objects transform basically for a spawn location for the driver leaving the vehicle. Be sure to place it outside of any entry trigger volumes or you might get into a infinite loop.
@VSZ thanks. i will try it @Demolition Man. Going Outside is working well, thats not the problem. the proplem only was the 3P_Mesh but i will try VSZ Method.
Someone of you know a nice way to make a âDeath Handleâ for a Standart AI Character BP ? (Ragdoll)
Could be you have to be certain of where youre moving the player to and precisely when your calling to enable collision. If you enable collision before moving the character position you will collide with the car before actually exiting.
Try to make sure youre moving the player character away from the vehicle location so when you then set the location you can enable collision without causing the character to collide with the vehicle