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

18 lines
461 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: IsPet(Spawn)
**Description:** Checks whether the given spawn is a pet (either a players pet or some kind of charmed/temporary pet).
**Parameters:**
`Spawn`: Spawn The entity to check.
**Returns:** Boolean true if the spawn is a pet under someones control; false otherwise.
**Example:**
```lua
-- Example usage (skip certain actions if the spawn is just a pet)
if not IsPet(TargetSpawn) then
Attack(NPC, TargetSpawn)
end
```