Пример #1
0
        public Firefighter(Vector3 position, float heading)
            : base(EntityCreator.CreateFirefighterPed(position, heading))
        {
            Equipment = new FirefighterEquipmentController(Ped);

            // all AdvancedPeds should call RegisterAdvancedPed but can't put it in the base constructor
            // because the generic type will always be AdvancedPed, instead of Firefighter, Paramedic, etc.
            // each AdvancedPed subclass with its own fiber and list
            RegisterAdvancedPed(this);
        }