This command sets your player's health to 0, killing you. Running this command in multiplayer will knock you down, requiring a teammate to revive you (or use the 'revivelocalplayer' command).
The syntax for the killlocalplayer command is as follows:
Search our database of 109 The Forest commands...All Commands
Find below working examples of the killlocalplayer command.
This is the only way the killlocalplayer command can be used, running this command will kill you.