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

461 B
Raw Permalink Blame History

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:

-- Example usage (skip certain actions if the spawn is just a pet)
if not IsPet(TargetSpawn) then
    Attack(NPC, TargetSpawn)
end