Jump to content

Patrol Heli Health

Work in Progress 1.0.9

CPan
CPan

Posted

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;
            }
        }

 

CrazyRust

Posted

If you don't want an invisible helicopter to kill players, then don't touch it. 🙂 The fix is already in progress. 

CrazyRust

Posted

Changed Status from Pending to Work in Progress

CPan

Posted

That's the type of issue I was afraid of. Thanks!

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.3k
Customers served
Files Sold
161.1k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.