ID:161647
Apr 14 2008, 11:45 am
|
|
I'm not sure where to find a library/demo having to do with inactivity. What I need for it is when the player isnt active their health goes back up.
|
Apr 14 2008, 11:50 am
|
|
Considering that client.inactivity applies to any action at all, it's probably not what you want. A more general method with some other variable you set whenever you do anything that should prevent regeneration (like combat) would be a better idea. Here's an example:
|
In response to Garthor
|
|
Garthor wrote:
Considering that client.inactivity applies to any action at all, it's probably not what you want. A more general method with some other variable you set whenever you do anything that should prevent regeneration (like combat) would be a better idea. Here's an example: mob So this would make it to where the mob's health would regenerate when he's in standby?Also why is the punch verb needed? |
In response to Killacentral
|
|
To show you an example of how you set the regentime variable.
|