I am sure that the answer is probably really simple…But I cannot find an answer for it. I have set of spears that I am “shooting” down a hallway using timeline, right now they stick in the wall were they hit, but I want o have them either reset back to their original position after a delay or if I have them destroyed I want them respawned back to their original position to be re-used by the pawn when he steps into a collision box. I figure that I should be using GetActor Transform and SpawnActor nodes but I am not sure how they interact…
Hello,
I used something similar for a door elevator closing after a delay :
If you want a slow movement back, then from your first timeline (spearmovement), you can drag a wire from “finished” node to a branch with a variable “back” to a delay and a second timeline, same as the first one but with a longer time (like 5 secs ). At the end of the delay, you set the variable true and play the timeline ( and play a click click click audio ^^). You connect your end overlap event there too. And don’t forget to set your variable to false on begin overlap. Then your spear will back up or on end overlap or after a delay.
If spear is destroyed then you just set “back” to true. (but you will have to use play from start if not you may have weird effect. I haven’t tried that part.)
edit : you may have to set / check “back” too on begin overlap.
Okay so I did what you suggested ( I think)…
I took the FINISHED node and dragged it out to the DELAY (at the bottom of the picture) … But they Disappeared…I am assuming that the Set Actor Location sent them to 0,0,0…I am suspect that I need to somehow hold on to the location of the original location of the spears But I am not sure how to do that…
Here is the global idea i was thinking about : I just tried it and it worked: you’ll need to set locations and times to have the effect you want. I used a float in timeline and a box as root with the starter content door and i set relative location.
Back is just a bool i set to not have first timeline playing as the other one is not finished and to not have delay activating when i did end overlap or the opposite. And i used float because it was easy to set and i was not sure of vector value and didn’t want to spend time checking it.
Interesting…Thanks for the help on this…after working through this and getting it to work this way…I have realized this is not really what I want for this specific BP. This is gonna be great for traps that jut from a wall then move back into that wall…But for this BP what I need to do is be able to launch these spears down a hallway, have them stop when they hit a collision either with the pawn or the wall at the end and then respawn back at the origin point. Which I thought by using timelines was the way to go…it possible still is…but I am not sure.
I am thinking that my answer is in the FP blueprint projectile BP…but I am not sure…
If in you first timeline, you use reverse on “event hit” it would work. But you need to hit the floor / wall before the end of the timeline to have it always working because using reverse at the end of play will do an infinite loop. (This is the first idea i would try)
For this, you’ll not need any boolean or second timeline i think. Only the first one with reverse and ground / wall collision set to have the reverse effect before the end of the timeline.
Hey there Fen…umm…I seem to have run int a small issue…I cannot replicate your node fro your Static Mesh into Relative Location Node as you have it with the Even Begin play…I had it last night but UE crashed on me and I shut down after and went to bed…
Maybe your root box is too small (as you can’t change its side, use box extent. And set it visible to test it.) Then check your collision status. And if you use “back” check that it is false on start.
Probably… lol… I am going to start with a fresh bp…but I want to make sure of two things. … first your Back Boolean Has No value and two that your Start is equal to my Spear Location in the BP at the top. …