3 batteries are floating. The player can pull each one via radial force to any of 3 docks. The battery moves and rotates in the correct direction (no example needed for that) when overlapping dock, the specific battery places itself on the dock, then the dock turns to ‘used’ and doesn’t pick any other battery anymore.The docks and batteries have sphere collisions to attract from a further distance. I tried to make Array + get only that specific battery overlapping that specific dock (index?? 0? ). Hope you see what i mean, my brain broke today
Edit: very important: any of the docks should be able to catch any battery. i assume it has to put the battery that makes the first overlap in an array and integer it to 0?
If I understand it right, I think simple On Begin Overlap => Do Once will suffice. When a dock trigger is overlapped by any of the batteries, the battery is caught by the dock and installed, and Do Once will make sure the dock doesn’t do anything else again. And you can add an Int variable to check how many docks have batteries plugged in.
The docking movement goes through tick. Should “Plug Battery Function” be the Vinterp movement - and the Final Function…? I imagined a boolean that closes it when the battery reached position 0 0 0 (or a scene component called docking point).
I personally prefer Timeline + Ease/Lerp bundle to vinterps/rinterps, but whatever works for you is fine.
The Final Function is what happens when all three batteries are connected.
And since batteries and docks are BPs, checking all three of them will be slightly different. Yes, you can add a bool that will be set to true once a dock has a battery, and then check all of them:
Or, depending on where your Final Function takes place, in the Level BP or in another BP, you can add an event in the Dock BP and call it when a battery is connected. The BP that contains the Final Function should Bind to the event of each dock, and then you can use the same Int as in the first example.
Tried to show the idea and started improvising and actually worked without integers. A bit of branch playing but very slick. Docks close as soon as battery is detected. Works nuts. [- YouTube][1]