Unturned death barrier on objects

How can i make this

// SDG.Unturned.Barrier
using SDG.Unturned;
using Steamworks;
using UnityEngine;

public class Barrier : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
if (Provider.isServer && other.transform.CompareTag(“Player”))
{
Player player = DamageTool.getPlayer(other.transform);
if ((Object)player != (Object)null)
{
player.life.askDamage(101, Vector3.up * 10f, EDeathCause.SUICIDE, ELimb.SKULL, CSteamID.Nil, out EPlayerKill _);
}
}
}
}

work in unity without error cs1644?

This error tells you, you are using a feature of higher version of C#, then the one you set your project to.

You have two options, either change whatever line gives you the problem (I honestly don’t know, please format your post) or increase .NET level in Unity PlayerSettings.

I think the thing you have a problem with is the one where you declare an out parameter in method invocation. To change that simply declare it in previous line