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. 

  • Haha 1
CrazyRust

Posted

Changed Status from Pending to Work in Progress

CPan

Posted

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

2.1m

Downloads

Total number of downloads.

10k

Customers

Total customers served.

145.8k

Files Sold

Total number of files sold.

3.1m

Payments Processed

Total payments processed.

×
×
  • 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.