本文整理匯總了C#中WCell.RealmServer.Entities.NPC.MoveToPointsThenExecute方法的典型用法代碼示例。如果您正苦於以下問題:C# NPC.MoveToPointsThenExecute方法的具體用法?C# NPC.MoveToPointsThenExecute怎麽用?C# NPC.MoveToPointsThenExecute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WCell.RealmServer.Entities.NPC
的用法示例。
在下文中一共展示了NPC.MoveToPointsThenExecute方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: EyeOfAcherusActivated
private static void EyeOfAcherusActivated(NPC npc)
{
//npc.SpellCast.TriggerSelf((SpellId)51860);
npc.SpellCast.TriggerSelf(SpellId.EyeOfAcherusVisual);
npc.Phase = 2;
var chr = npc.Map.GetObject(npc.Creator) as Character;
if (chr != null)
{
//TODO localise!
ChatMgr.SendRaidBossWhisper(npc, chr, "The Eye of Acherus launches towards its destination.");
npc.SpellCast.Trigger(SpellId.EyeOfAcherusFlightBoost, npc, chr);
npc.Flying++;
//npc.IncMechanicCount(SpellMechanic.Rooted);
//Move to destination
var points = new List<Vector3>(3)
{
new Vector3(1758.007f, -5876.785f, 166.8667f),
new Vector3(1957.396f, -5844.105f, 273.8667f),
new Vector3(2341.571f, -5672.797f, 538.3942f),
};
npc.MoveToPointsThenExecute(points, unit =>
{
unit.SpellCast.TriggerSelf(
SpellId.EyeOfAcherusFlight);
unit.Auras.Remove(
SpellId.EyeOfAcherusFlightBoost);
ChatMgr.SendRaidBossWhisper(unit, chr,
"The Eye of Acherus is in your control.");
//unit.DecMechanicCount(SpellMechanic.Rooted);
});
}
}