I have an object that I want to move a certain amount when the player interacts with it. This is already scripted. However, I want this to be repeatable with successive input uses. My issue is being unsure how to update the location information received on the object so that successive input uses will recognize its world location and repeat the desired effect. My world location info for the object is currently gathered off an Event BeginPlay exec and Get WorldLocation script tree; I’m gathering I need something else instead of or in addition to the BeginPlay, but kind of lost here. Suggestions? Thanks.
There are ways around this, I know. As is I have a Timeline set to run the total time and distance it will be able to move in total across multiple inputs before blocked by the environment, and have a Delay set off that such that I know how much distance the object will move after that many seconds because of the division of total distance by total time, and the delay then looping back to the Stop input on my Timeline so that it breaks down reaching the end of the full Timeline into multiple chunks that are individually correct. It’s just that this seems like a convoluted way of trying to achieve what I’m doing, and am sure there must be a simpler way that I just don’t know yet.