public static void SetLastTargetTo(uint serial) { TargetInfo targ = new TargetInfo(); m_LastGroundTarg = m_LastTarget = targ; var m = World.FindEntity(serial); targ.Type = 0; if (m_HasTarget) { targ.Flags = m_CurFlags; } targ.Gfx = m.GraphicID; targ.Serial = m.Serial; targ.X = m.Position.X; targ.Y = m.Position.Y; targ.Z = m.Position.Z; }