How do you just kill a player using verse?

Surprised I can’t find a single answer online. How do you kill a player through code? I want just that particular player to die instantly. Specifically, I need the method to work when a player is down but not out.

1 Like

You can just create a method to damage the player to kill them. Still new to this, this is from memory so might have missed something.
DamagePlayer(InAgent : agent) : void= if (FortCharacter := InAgent.GetFortCharacter[]): FortCharacter.Damage(100)

1 Like

This is correct. Just apply damage to them. You can check first to see if they are DownButNotOut too.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.