1. Greetings!

    Im working atm with some Code around the heli, and im trying everything now to give the heli
    a BasePlayer as a target.

    I know, giving the heli just Vector3 coords is the ez way and probably the only way other heli plugins doing that.

    For my intentions, i cant use that.
    The Main thing i want to achieve here is just that the called heli has one target to shoot,
    if he kills the target, his job is done, then the heli can fly away again.

    thinking, that i obviously need a reference to the targeted player, between the method to call the heli, to
    get rid of it again.

    So i worked here for now with OnEntitySpawned-

    Code:
    void OnEntitySpawned(BaseNetworkable entity)
            {
                if (entity == null ) return;
                var prefabname = entity?.ShortPrefabName ?? string.Empty;
                var longprefabname = entity?.PrefabName ?? string.Empty;
                if (string.IsNullOrEmpty(prefabname) || string.IsNullOrEmpty(longprefabname)) return;
                
                if (prefabname.Contains("patrolhelicopter") && !prefabname.Contains("gibs"))
                {
        
        
                    var AIHeli = entity?.GetComponent<PatrolHelicopterAI>() ?? null;
                    var BaseHeli = entity?.GetComponent<BaseHelicopter>() ?? null;
                    if (AIHeli == null || BaseHeli == null) return;
                    CurrentAI = AIHeli;
                  
                    
                    //AIHeli._targetList.First().ply = target;
                    
                    
                    var player =  AIHeli.rightGun._target as BasePlayer;
                    
    Main Method taken from HeliControl- Thanks for that-

    Cause it seemed obvious, i tried now to handle this with the targetinfo,
    but that list is emtpy upon spawn of the heli entity.
    I tried aswell creating
    new List<targetinfo>(); , and immediatly assign values - in the heli call method.
    everything doesnt work. Similar work with the Turrets - the _target field .
    Same thing.

    Has someone maaaybe an idea how i could handle this?
    maybe even a complete diff. way, like i said. Main intention is to make the heli just an onepunch singletarget.