playMaker

Author Topic: How can I use a PickUpSystem with Raycast?  (Read 894 times)

BobBoes

  • Playmaker Newbie
  • *
  • Posts: 8
How can I use a PickUpSystem with Raycast?
« on: November 13, 2021, 07:27:16 AM »
Hello Guys, how can I build a "pick up system". The rules are that the player needs to be near and look at the object before he can pick it up, also there should be a Image in front of the player, that shows him that he can pick it up (A hand or something). I used Raycast to enable the Image at the point he saw it, but the image stays all the time and my pick up system does work everywhere.

Is there someone that knows how to build up a PickUpSystem with Raycast or maybe is there a easier or better way to do it? Can someoone help me?

Thanks for reading!

Bob Boes



t4d

  • Junior Playmaker
  • **
  • Posts: 70
Re: How can I use a PickUpSystem with Raycast?
« Reply #1 on: November 15, 2021, 12:42:03 AM »
each of those issues is a different objective

Pickup for me I use distance and a float switch to reparent or position the grabbed item when they are within the limit set in the float switch.

UI needs is a different playmaker flow

to check to see if the user has looked at the item to turn on the above UI and grab Is also a separate playmaker flow

once you got all 3 working then if you want combine them go right ahead