I noticed that the Patrol Heli is ignoring the health set in the config. I looked at the .cs and found that loading the config vars is commented out. Is this intentional or left over from some other testing? I assume I can just uncomment this but I don't want some obscure issue to show up that you might be working on.
private void SpawnHeli()
{
PatrolHelicopter helicopter = GameManager.server.CreateEntity("assets/prefabs/npc/patrol helicopter/patrolhelicopter.prefab") as PatrolHelicopter;
helicopter.enableSaving = false;
// helicopter.maxCratesToSpawn = _config.HeliConfig.helicrates;
// helicopter.startHealth = _config.HeliConfig.helihealth;
helicopter.Spawn();
helicopter.transform.position = RandomPointOnWorldBounds();
helicopter.myAI.State_Patrol_Enter();
if (helicopter != null)
{
EventHelicopter controller = helicopter.gameObject.AddComponent<EventHelicopter>();
Controllerheli = controller;
}
}