If you have the setting to show library tasks turned on, you can look at the the player movement task to see how it is done, which is done, as R2T1 said, by having the execute task look as a task action after the player has been moved.