3 protected float m_MaximalActionDistanceSq;
7 m_MaximalActionDistanceSq = maximal_target_distance * maximal_target_distance;
15 Object targetObject = target.GetObject();
16 if ( !player || !targetObject || targetObject.IsMan() || targetObject.IsDamageDestroyed() )
19 return (
vector.DistanceSq(targetObject.GetPosition(), player.GetPosition()) <= m_MaximalActionDistanceSq );