# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/prop-hunt-03-playing-effects-on-idle-players-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/fortnite/prop-hunt-03-playing-effects-on-idle-players-in-unreal-editor-for-fortnite.md
# Section: Determining If A Player Is Idle
(PropAgent:agent).AwaitStopMoving(MinimumDistance:float)<suspends>:void=
Logger.Print("Checking if the agent has moved less than the minimum distance.")
# Get the initial position of the agent from the agent's character in the scene.
if (Tracked := PropAgent.GetFortCharacter[]):
var StartPosition:vector3 = Tracked.GetTransform().Translation
Verse Library
verse
02 Determining If A Player Is Idle
Captures initial character position to determine when an agent has stopped moving.
extracted-snippets/documentation/en-us/fortnite/prop-hunt-03-playing-effects-on-idle-players-in-unreal-editor-for-fortnite/02-determining-if-a-player-is-idle.verse