#Adjusting role starting Health and HumeShield values

1 messages · Page 1 of 1 (latest)

rocky hedge
#

I'm trying to make a plugin which just sets the players max health and shield to a specified value when they spawn as a certain role but when I set the values it does not work. Screenshot attached. Any help would be appreciated.

runic bluff
#

set the max values before setting the current values

rocky hedge
runic bluff
#

oh

#

the PlayerSpawnedEventArgs is never called as it seems

#

use the RoleChangedEvent

rocky hedge
#

Ok I'll try that, I think it might be called though because i have a logger at the end of the event and it logs the info on the server terminal

runic bluff
rocky hedge
#

Sorry, I meant this is the full code snippet and the logger at the end works

#

Ok the rolechangedevent worked perfectly

#

cheers

runic bluff