so.....do i just add this to the json file? as it is? or does it go in the cs file? i'm a little confused. can anyone post a copy of which ever file it goes in so i can see where it goes?
NEW 1525
{
foreach (var heli in _PatrolHelicopters)
{
var ai = heli?.GetComponent<PatrolHelicopterAI>() ?? null;
if (ai != null) StartStrafe(ai, target, ai.CanUseNapalm());
}
}
else StartStrafe(HeliInstance, target, HeliInstance.CanUseNapalm());
player.Message(string.Format(GetMessage("strafingOtherPosition", player.Id), target.displayName));
}
NEW 1926
private void StartStrafe(PatrolHelicopterAI heli, BasePlayer target, bool useNapalm)
{
if (heli == null || !(heli?.IsAlive() ?? false) || (heli?._currentState ?? PatrolHelicopterAI.aiState.DEATH) == PatrolHelicopterAI.aiState.DEATH || target == null) return;
heli.interestZoneOrigin = target.transform.position;
heli.ExitCurrentState();
heli.State_Strafe_Enter(target, useNapalm);
}