Hello, i need to make a pillar accept an orb to open a gate, First i need to make the character put the orb in the pillar, then the pillar need to accept the orb , and finally the gate need to recognize if the orb is in the pillar or not so it can open, i really need help please.
-
Create a trigger component in the pillar BP (Box Collision, or Sphere Collision), and make set it to overlap your sphere;
-
OnBeginOverlap, check if other actor is a sphere, maybe the type of sphere, etc., depending on your setup;
-
If the overlapping sphere is the right kind, teleport it to the right spot on the pillar (or make any other animation you can think of); and of course remove the sphere from the character’s possession, depending on how the character carries it;
-
Call the open function in the gate BP.
How are you meaning "give’ ?
Is it something in the world you can see, that the player is moving in some way/
Or is it something that exists as data in an ‘inventory’ of the player?
The methods will be entirely different based on the answer.
I’m going to assume you mean the more complex of the two.
I’ll throw together a quick example. Most of what you’re looking for will fall under the general topic of “blueprint communications.”
So sorry for answering late, question, so i need to enter to my BP pillar, and make a sphere or box collision? and then add the Event Actor Begin Overlap?, and last, how can i detach the orb from the character, this are my blueprints:
My orb is pick up by my character, then destroy, but the orb can respawn again, so what should i do to make the orb break that connection with the character and connect with the orb.
sorry connect with the pillar*
Sorry for answering late, could you explain me more how does that work?
Sorry for answering late , the orb is visible, it does a destroy when the player pick it up and it can also do a respawn.