Help Needed BP Issue!

I made this function Using ChatGPT kindly let me know if it is correct and and also how to call it? so when my character collide with water it respawns character on the location from it just lastly jumped on water.

1 Like

Okay, do you understand any of this?
Because if you do, you’ll realize this is convoluted and, as far as I can tell, makes absolutely no sense (given what you want).

Read it out loud and you’ll see what I mean.

Otherwise, don’t use code you don’t understand.

EDIT: I read this assuming you want all of those nodes to be connected, because if they aren’t, then your line trace is just a dot in the middle of your character.

ChatGPT isn’t ready for Blueprint (BP). Maybe in another major version or two.

It can kinda handle textual languages (JavaScript, C++, python, etc.), but visual languages are completely beyond it. Some of what it can do in C++ surprises me, but it’s still hit-or-miss.

LLMs need some guidance by someone who pretty much knows what they want in order to help you end up at your goal.

The node graph you’ve posted shows that you’re just starting to learn BP. That’s not a sin or antying, but you do need to get some more foundational knowledge before you try creating any more BP.

1 Like

I also didn’t get it, which is why I posted it here. It might be that I am wrong and I am not understanding its flow.

Yeah you are right.

So do you guys have any idea how to make it respawn at the location where it just jumped?

I’m not sure what you mean, because if you mean what these words are saying, then you’ll get an infinite loop. Further, the code you supplied suggests that you want a spawn point directly above the location of the character. So, if the character spawns there, they’ll fall back into the water, and continue the loop forever.

This is not the same as what you said earlier, so which is it? Can you be VERY CLEAR so I don’t have to guess what you mean? Take your time with your response, because you’re a little difficult for me to understand.

Tell me/us exactly what you’re trying to do and why.

2 Likes

Ok let me be clear and simple I Want to save last jump position and use it in respawning when ever my character is collide with water…

You can remove the delay if you want it instantly.
WaterCollide.zip (8.3 MB)

Not a fan of tick though. Could be hooked into combination of movement input a falling check.

1 Like

atleast good to know someone else uses chatgpt like me. bro chatgpt is dumb when It comes to blueprint coding. so u need tot ell every significant detail. also make sure you print everything. eventually u gonna debug. do not expect chatgpt to code for you. chatgpt only shows you general direction. chatgpt can’t even make a proper shooting mechanics like automatic fire or burstfire. It trys to set up burstfire with a stupid while loop. wheres u could’ve easly set up with timer by event and do N. use chatgpt for only If you cannot a solution in a video, and If you don’t know first steps or certain aspects. but do not trust chatgpt for maknig whole systems. Ifu have 0 knowlage sure It is good for knowing nodes and differances.

1 Like

I am a little bit confused that I want to save the last jumped position, so won’t I be connecting it with the jump function? The BP you have created has a Capsule component, so should I paste your BP in my Character Blueprint or in the Water Collison Box BP?
THANKYOU


I don’t have any water body like yours, so what should I do?

You could replace it with an actor tag check.
Just make sure to tag your water objects as “Water” in their actor tag and then check if the overlapping actor has the tag “Water”, in place of the component check.

When setting the tag make sure you are at the top of the water actor’s hierarchy.
Don’t mix up component tag with actor tag or it won’t work.

Are you not using the built in water system in that case?


I don’t think this is built in water.

The BP you have created has a Capsule component, so should I paste your BP in my Character Blueprint or in the Water Collison Box BP?

The default character class has a built in capsule component. Just click the begin overlap button in it’s details panel and it will create the overlap event

The water also looks like a mesh component. Then you would need to check the overlapped component for the tag. The tag would also be set on as a component tag.


I am using set timer by event instead of tick as my tick event was already occupied.


I am calling it in my jump function when button is pressed is that ok?

and what if we store last location in player state/

If you are using a timer then just hook it up to begin play.
Also the event that the timer triggers is the one that is connected via the red bright line => that is where the logic should be connected, not the out pin of the set timer function.

The timer triggers the red event node

A 1 second interval might be rather large. It will only save the position every 1 second.