1
0
EQ2Emu/docs/lua_functions/PauseMovement.md
2025-05-28 21:48:33 -04:00

17 lines
488 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: PauseMovement(Spawn, DurationMS)
**Description:** Pauses the given NPCs movement for the specified duration (in milliseconds). The NPC will stop moving along waypoints or patrols, and then resume after the pause.
**Parameters:**
`Spawn`: Spawn The NPC to pause.
`DurationMS`: Int32 How long to pause movement, in milliseconds.
**Returns:** None.
**Example:**
```lua
-- Example usage (stop a guard for 5 seconds when hailed)
PauseMovement(GuardNPC, 5000)
```