What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Scripting plugins] How do i find if character is dead?

derpilo

New Member
Joined
Dec 29, 2011
Messages
7
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
 
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 :-)
 
Back
Top