1. Hiya,

    Is there any way to get the location of a crashed heli (patrol & chinook) and destroyed APCs?

    Thanks in advance,


    T.
     
    Last edited by a moderator: Apr 26, 2018
  2. Calytic

    Calytic Community Admin Community Mod

    Yes, it's pretty easy.

    Look at HooksExtended

    Specifically, OnHelicopterDeath, OnChinookDeath, and OnBradleyAPCDeath.

    Doing something equivalent in your own plugin, without using HooksExtended..

    Code:
    void OnEntityDeath (BaseCombatEntity entity, HitInfo info)
    {
        if(entity is BaseHelicopter) {
            // do something
        }
        if(entity is BradleyAPC) {
            // do something
        }
        if(entity is CH47Helicopter) {
            // do something
        }
    }