Trigger event on movement/location change

What would be the best way to trigger an event when an actors location is being changed?

You can do it during the tick if you save the location and check against the previous location, but that would be expensive if you have a lot of objects doing that operation. Alternatively you could keep track of the actions that might cause a change of location (input for example or collision). I am not aware of any event that is triggered by a change of location, so I think you will need to create one yourself and from there call your other event.

I see. Think I’ll try to do a check against previous location, as I have it now it’s on every tick and it doesn’t seem to be too much. Thank you so much for the fast help!

An easy way to achieve this would be to just use a boolean. Create a blueprint of the actor you want to move, create a bool called “Moved”? and when you run your code to move the actor, set the value of the bool to true. Then in your level blueprint (or character depending on if you want to use this functionality in multiple levels or not) connect a branch node to the Event Tick, get an instance of your actorBP, get the “Moved?” bool, connect it to the branch, hook a DoOnce node to the true pin so the event tick only fires it once and then run your code from there.