In Resident Evil 2, players could modify the game file to set unlimited life. The specific steps were as follows: 1. Downloading and installing a software called "Game MOD", which can help players modify the game files. 2 Open Resident Evil 2's game folder and find the "Data" folder. 3 Find the 'Character' folder in the 'Data' folder. 4. Open the "Character" folder and find the "PlayerJson" file. 5 Make a backup copy of this file in case you need to restore the original settings. 6 Open the "playerjson" file using the "edit file" function in the Game MOD software. 7 Enter an infinite number such as "100" in the "lifespan" field. Save the modified file. 9. Reboot Resident Evil 2 to apply the unlimited life setting to the game. However, it should be noted that modifying the game file may destroy the balance and fairness of the game, so it is not recommended for players to try.