$id = $player_inst->{id}; $hitpoints = $player_inst->{hp}; $weapon = $player_inst->{weapon};