September 20, 20178 yr Is there a way to check using C#, if the hunter player even has a pet? I would like to include pet mending, reviving, and calling inside my fight class, but if the hunter does not even own a pet yet, how can I bypass the abilities inside the fight class if there is no pet? Quote Digits 4-10 - A constant value unique to the individual pet: like a player's unique ID it is constant across multiple sessions. -http://wowprogramming.com/docs/api_types#guid I was wondering if I could just check if GUID != 0?
September 20, 20178 yr 5 hours ago, Apexx said: Is there a way to check using C#, if the hunter player even has a pet? I would like to include pet mending, reviving, and calling inside my fight class, but if the hunter does not even own a pet yet, how can I bypass the abilities inside the fight class if there is no pet? I was wondering if I could just check if GUID != 0? ObjectManager.Pet.IsValid May that helps.
Create an account or sign in to comment