{"id":1055,"date":"2026-03-01T21:23:18","date_gmt":"2026-03-01T21:23:18","guid":{"rendered":"https:\/\/sites.wsagames.com\/yy8y24\/?p=1055"},"modified":"2026-03-07T20:05:25","modified_gmt":"2026-03-07T20:05:25","slug":"player-pickup-system","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/yy8y24\/2026\/03\/01\/player-pickup-system\/","title":{"rendered":"Player Pickup System"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>The video shows Pickup system:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video alignwide\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/Pickup-system.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pickup System\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004145-1024x461.png\" alt=\"\" class=\"wp-image-1061\" srcset=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004145-1024x461.png 1024w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004145-300x135.png 300w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004145-768x346.png 768w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004145-1536x692.png 1536w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004145.png 1652w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Because at first I was grabbing items by holding down the E button, but after player feedback, I changed it to have the player hold down the left mouse button to grab the item.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So first I set up the event to be triggered using the left mouse button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After I get the camera it&#8217;s using the camera to get the player&#8217;s position and start triggering the event when the player&#8217;s position is detected.Also use the camera to get worldrotation to ensure that the camera is looking forward.After that a floating point number is set, which is the recognisable distance to the item.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After that I created a branch to add physics handle to component to make sure the player can pick up items and move around.Get physics handle Creates a component that adds a rotational position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now the player can only execute it frame by frame after holding down the left mouse button, so add a bool variable. Set this variable to true.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, add a branch to released to get the variable you just set, set a release component, and set this variable to false.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004155-1024x611.png\" alt=\"\" class=\"wp-image-1060\" srcset=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004155-1024x611.png 1024w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004155-300x179.png 300w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004155-768x458.png 768w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004155-1536x916.png 1536w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/03\/\u5c4f\u5e55\u622a\u56fe-2026-03-01-004155-2048x1221.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Set an Even Tick which will be called every frame. Create another branch that checks to see if the capture is being updated. check Set a Target Position that will fetch the new position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the camera position from the previous section of the blueprint and connect it to the new position.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The video shows Pickup system: Pickup System\uff1a Because at first I was grabbing items by holding down the E button, but after player feedback, I changed it to have the player hold down the left mouse button to grab the item. So first I set up the event to be triggered using the left mouse [&hellip;]<\/p>\n","protected":false},"author":56,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75,1],"tags":[],"class_list":["post-1055","post","type-post","status-publish","format-standard","hentry","category-development","category-year2"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts\/1055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/comments?post=1055"}],"version-history":[{"count":4,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts\/1055\/revisions"}],"predecessor-version":[{"id":1063,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts\/1055\/revisions\/1063"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/media?parent=1055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/categories?post=1055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/tags?post=1055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}