1
0

432 B
Raw 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