• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Scripting plugins] How do i find if character is dead?

    Discussion in 'Honorbuddy Support' started by derpilo, Dec 31, 2011.

    1. derpilo

      derpilo New Member

      Joined:
      Dec 29, 2011
      Messages:
      7
      Likes Received:
      1
      Trophy Points:
      0
      How do i detect if my character is dead in a plugin? I have some limited knowledge of this language and i'm trying to code a little plugin but i'm having trouble finding what can make me find if my character is dead.

      I have tried:
      me.dead, self.dead, Self.IsHealthPercentBelow(1)
      On compile it just says me or self does not exist in the current context

      Can someone help me and tell me how i can get a positive return for finding if my character is dead (as in on the floor, not a ghost). Thanks
       
    2. znuffie

      znuffie Banned

      Joined:
      Feb 23, 2010
      Messages:
      864
      Likes Received:
      30
      Trophy Points:
      28
      To use Me.* stuff you first need to define it:

      Code:
      private static LocalPlayer Me { get { return ObjectManager.Me; } }
      Then you can safely do Me.IsAlive or Me.Dead :)
       
    3. derpilo

      derpilo New Member

      Joined:
      Dec 29, 2011
      Messages:
      7
      Likes Received:
      1
      Trophy Points:
      0
      Thankyou :)
       

    Share This Page