#OnPlayerUpdateVirus

24 messages · Page 1 of 1 (latest)

floral junco
#

i tried to use OnPlayerUpdateVirus but it does not work when u are in the deadzone,how to fix it?

floral junco
#

@soft halo
have any ideas?

soft halo
#

Are you saying that PlayerLife.OnPlayerUpdateVirus doesnt update when they are in a deadzone?

floral junco
#

no, UnturnedPlayerEvents

#

and it doesn't work if i drink chemicals

#

i tested PlayerLife.OnPlayerUpdateVirus and its only works with deadzone

#

any ways to make it in one method?

soft halo
#

There are two events

#

I dont know why

#

but there are

floral junco
#

does it greatly affect server optimization if I run 2 events?

soft halo
#

no not at all

floral junco
#

don't know how to fix a problem with chemicals?

soft halo
#

PlayerLife.OnTellVirus_Global

#

that one triggers when you drink for example chemicals

#

it gives you the PlayerLife of that player

#

you can get the player from PlayerLife by doing PlayerLife.player

#

if you dont know how Actions work, Google

floral junco
soft halo
#

no

#

you still need the 2 events

floral junco
soft halo
#

yes.