• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

player death

ConAn Edujawa

Member
Joined
Feb 23, 2015
Messages
457
Reaction score
17
how i can make player take 5 sec before dead like reviv system
count 1.2.3.4.5 and then player dead

0.4 tfs
 
Quoting myself from another thread, but slightly altering the text so there is no confusion.
If you want to 'simulate death', I'd suggest performing this inside of 'onStatsChange', and checking if the players remaining life equals the damage that is being applied to them.
(basically meaning, that this damage would have been a death blow. At this point bring the characters life to 1, and disable all healing/damage/movement of the character.
If the character isn't 'revived', then damage the character to 0 life using whatever method you want, and let them die normally.
 
Back
Top