Magi
New Member
- Joined
- Oct 12, 2012
- Messages
- 1,242
- Reaction score
- 7
Tweaking someone else's plugin. It currently makes a call to function that checks whether a keywardenSNO is in the RActorList in OnPulse()
It works fine for finding the warden, but I am trying to see if the warden's Hitpoints reaches 0 to see if he is really dead (as opposed to going out of range and dropping off the RActorList). Unforunately OnPulse doesn't fire quick enough.
I know there has to be a way to tie this into something that has shorter intervals as the OnPulse() function sometimes can see it reached 0 HP, and other times it doesn't...since the RActor drops off the list soon after warden dies.
Any help would be appreciated, just need to pop that KeyWardenCheck into something quicker (or at least something quicker once it FINDS the warden).
Code:
public void OnPulse()
{
KeyWardenCheck();
}
It works fine for finding the warden, but I am trying to see if the warden's Hitpoints reaches 0 to see if he is really dead (as opposed to going out of range and dropping off the RActorList). Unforunately OnPulse doesn't fire quick enough.
I know there has to be a way to tie this into something that has shorter intervals as the OnPulse() function sometimes can see it reached 0 HP, and other times it doesn't...since the RActor drops off the list soon after warden dies.
Any help would be appreciated, just need to pop that KeyWardenCheck into something quicker (or at least something quicker once it FINDS the warden).