1
0
2025-05-28 21:48:33 -04:00

16 lines
387 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: Runback(NPC)
**Description:** Forces the NPC to run back to its designated home point or spawn point. This is typically invoked when an encounter ends or the NPC needs to retreat/reset to its origin.
**Parameters:**
`NPC`: Spawn The NPC that should run back.
**Returns:** None.
**Example:**
```lua
-- Example usage (an NPC flees and returns home)
Runback(NPC)
```