本文整理汇总了C#中Aura.Channel.World.Entities.Creature.TurnTo方法的典型用法代码示例。如果您正苦于以下问题:C# Creature.TurnTo方法的具体用法?C# Creature.TurnTo怎么用?C# Creature.TurnTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aura.Channel.World.Entities.Creature
的用法示例。
在下文中一共展示了Creature.TurnTo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Use
/// <summary>
/// Starts fishing at target location.
/// </summary>
/// <param name="creature"></param>
/// <param name="skill"></param>
/// <param name="packet"></param>
public void Use(Creature creature, Skill skill, Packet packet)
{
var targetPositionId = packet.GetLong();
var unkInt1 = packet.GetInt();
var unkInt2 = packet.GetInt();
var pos = new Position(targetPositionId);
creature.Temp.FishingProp = new Prop(274, creature.RegionId, pos.X, pos.Y, 1, 1, 0, "empty");
creature.Region.AddProp(creature.Temp.FishingProp);
creature.TurnTo(pos);
Send.Effect(creature, Effect.Fishing, (byte)FishingEffectType.Cast, true);
Send.SkillUse(creature, skill.Info.Id, targetPositionId, unkInt1, unkInt2);
this.StartFishing(creature, 1000);
}