Ejemplo n.º 1
0
        private void OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
        {
            ReactiveTarget target = entity as ReactiveTarget;

            if (target != null && target.IsKnockedDown())
            {
                timer.Once(3f, () =>
                {
                    target.ResetTarget();
                });
            }
        }
Ejemplo n.º 2
0
        /*
         * // Function OnEntityTakeDamage
         * // PURPOSE: Resets the target that gets knocked down after [Configuration:ResetTime] seconds
         * // RETURN: None
         */
        void OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
        {
            if (entity is ReactiveTarget)
            {
                ReactiveTarget target = (ReactiveTarget)entity;

                if (target != null)
                {
                    if (target.IsKnockedDown() == true)
                    {
                        timer.Once(3f, () =>
                        {
                            target.SetFlag(BaseEntity.Flags.On, true);
                        });
                    }
                }
            }
        }