Onject pick idea

I say we can use component and inheritance both too.

First idea:
In the PlayerController in its Tick method that called every frame, we can check if it is near the specific char, if it is and the mouse is clicked, we set the chair position to the middle of camera view vector angle and we increase its magnitude by some number so the chair will do what we want, we also listen for mouse released event and drop it.

Second idea:
Same thing we did with the door and PressureVolume but this time with the chair and the controller pawn, we check if the player pawn is close, then we stick the chair position to some number toward the pawn.

But i would rather like to make a global function or something in the AActor or something so that everyone inherits from it, so whenever i say something is grabable it the details, it becomes dragable.

Privacy & Terms