本文整理匯總了C#中AIHeroClient.IsMelee方法的典型用法代碼示例。如果您正苦於以下問題:C# AIHeroClient.IsMelee方法的具體用法?C# AIHeroClient.IsMelee怎麽用?C# AIHeroClient.IsMelee使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.IsMelee方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: putWallBehind
public static void putWallBehind(AIHeroClient target)
{
if (!W.IsReady() || !E.IsReady() || target.IsMelee())
return;
Vector2 dashPos = getNextPos(target);
PredictionOutput po = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f);
float dist = Player.LSDistance(po.UnitPosition);
if (!target.IsMoving || Player.LSDistance(dashPos) <= dist + 40)
if (dist < 330 && dist > 100 && W.IsReady())
{
W.Cast(po.UnitPosition);
}
}
示例2: eBehindWall
public static void eBehindWall(AIHeroClient target)
{
if (!E.IsReady() || !enemyIsJumpable(target) || target.IsMelee())
return;
float dist = Player.LSDistance(target);
var pPos = Player.Position.LSTo2D();
Vector2 dashPos = target.Position.LSTo2D();
if (!target.IsMoving || Player.LSDistance(dashPos) <= dist)
{
foreach (Obj_AI_Base enemy in ObjectManager.Get<Obj_AI_Base>().Where(enemy => enemyIsJumpable(enemy)))
{
Vector2 posAfterE = pPos + (Vector2.Normalize(enemy.Position.LSTo2D() - pPos) * E.Range);
if ((target.LSDistance(posAfterE) < dist
|| target.LSDistance(posAfterE) < Orbwalking.GetRealAutoAttackRange(target) + 100)
&& goesThroughWall(target.Position, posAfterE.To3D()))
{
if (useENormal(target))
return;
}
}
}
}
示例3: putWallBehind
public static void putWallBehind(AIHeroClient target)
{
if (!W.IsReady() || !E.IsReady() || target.IsMelee())
return;
Vector2 dashPos = getNextPos(target);
PredictionOutput po = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f);
float dist = myHero.LSDistance(po.UnitPosition);
if (!target.IsMoving || myHero.LSDistance(dashPos) <= dist + 40)
if (dist < 330 && dist > 100 && W.IsReady() && getCheckBoxItem(wwMenu, target.NetworkId + ""))
{
W.Cast(po.UnitPosition - 50, true);
}
}